Hi all,
Do not know if to report this as bug or feature request.
When creating a new email box on a ISP mail server usually the folders are created upon first mail or by the mail client. in this case only the inbox is created upon first mail before when using squirrelmail or thunderbird via imap the client would create the appropriate other boxes (drafts, trash and sent) roundcube does not do this yet, which leads to errors when writing new messages or deleting existing messages from new inboxes.
Sorry to not post a patch right now I just noticed this and might come up with a patch later.
rds,
Michiel van den Berg
And the patch file is here, Very simple really all the code was there, just needed to create that bit extra lines to create the 3 missing folders. the patch is created against the last svn version (260)
rgds
Michiel van den Berg wrote:
Hi all,
Do not know if to report this as bug or feature request.
When creating a new email box on a ISP mail server usually the folders are created upon first mail or by the mail client. in this case only the inbox is created upon first mail before when using squirrelmail or thunderbird via imap the client would create the appropriate other boxes (drafts, trash and sent) roundcube does not do this yet, which leads to errors when writing new messages or deleting existing messages from new inboxes.
Sorry to not post a patch right now I just noticed this and might come up with a patch later.
rds,
Michiel van den Berg
diff -Naurb ./program/include/rcube_imap.inc ../../trunk-260/roundcubemail/program/include/rcube_imap.inc --- ./program/include/rcube_imap.inc 2006-05-22 17:06:58.000000000 +0000 +++ ../../trunk-260/roundcubemail/program/include/rcube_imap.inc 2006-06-13 17:41:39.000000000 +0000 @@ -369,6 +369,24 @@ array_unshift($a_folders, 'INBOX'); }
if (!in_array_nocase('DRAFTS', $a_folders))
{
$this->create_mailbox('DRAFTS', TRUE);
array_unshift($a_folders, 'DRAFTS');
}
if (!in_array_nocase('SENT', $a_folders))
{
$this->create_mailbox('SENT', TRUE);
array_unshift($a_folders, 'SENT');
}
if (!in_array_nocase('TRASH', $a_folders))
{
$this->create_mailbox('TRASH', TRUE);
array_unshift($a_folders, 'TRASH');
}
$a_mailbox_cache = array();
// write mailboxlist to cache
On Tue, 13 Jun 2006 19:09:28 +0200, Michiel van den Berg flash@daaw.org wrote:
And the patch file is here, Very simple really all the code was there, just needed to create that bit extra lines to create the 3 missing folders. the patch is created against the last svn version (260)
Is this a patch? It seems just a diff print out. Could you -or someone else- convert it to a patch to use with patch tool? Or am I missing something? This too should be added to the main core.
Cheers,
'patch -p0 <create_folders.patch' works fine on it
David Collantes wrote:
On Tue, 13 Jun 2006 19:09:28 +0200, Michiel van den Berg flash@daaw.org wrote:
And the patch file is here, Very simple really all the code was there, just needed to create that bit extra lines to create the 3 missing folders. the patch is created against the last svn version (260)
Is this a patch? It seems just a diff print out. Could you -or someone else- convert it to a patch to use with patch tool? Or am I missing something? This too should be added to the main core.
Cheers,
Hi,
Actually RoundCube attempts to create the mailboxes as they are needed. For example in program/steps/mail/sendmail.inc around line 288 or in program/include/rcube_imap.inc near line 1016. This is only done if the folders for Sent and Trash are specified on the config file.
There have been some discussions if mailboxes should automatically be created by a client on the first login. We decided not to create them at login but as they are needed. If this does not work correctly, then you should try to find out why.
Your patch would not fit everybody's needs and will not be added to the SVN. The names of those folders are not always Sent, Trash and Drafts but can also be Sent Messages, Deleted Messages, etc.
Regards, Thomas
Michiel van den Berg wrote:
Hi all,
Do not know if to report this as bug or feature request.
When creating a new email box on a ISP mail server usually the folders are created upon first mail or by the mail client. in this case only the inbox is created upon first mail before when using squirrelmail or thunderbird via imap the client would create the appropriate other boxes (drafts, trash and sent) roundcube does not do this yet, which leads to errors when writing new messages or deleting existing messages from new inboxes.
Sorry to not post a patch right now I just noticed this and might come up with a patch later.
rds,
Michiel van den Berg
Fair enough, Folders are not created with me. ill leave the solution I created now in my own webmail just copied this behaviour from squirrelmail and thunderbird as they do create the folders upon first opening the mailbox. Anyway I dont believe setting a 'fixed' name for folders like drafts, sent or trash will be any problem. as long as the webmail knows where to send the items (thunderbird also uses fixed folder names)
On Wed, 14 Jun 2006 08:31:31 +0200, Thomas Bruederli roundcube@gmail.com wrote:
Hi,
Actually RoundCube attempts to create the mailboxes as they are needed. For example in program/steps/mail/sendmail.inc around line 288 or in program/include/rcube_imap.inc near line 1016. This is only done if the folders for Sent and Trash are specified on the config file.
There have been some discussions if mailboxes should automatically be created by a client on the first login. We decided not to create them at login but as they are needed. If this does not work correctly, then you should try to find out why.
Your patch would not fit everybody's needs and will not be added to the SVN. The names of those folders are not always Sent, Trash and Drafts but can also be Sent Messages, Deleted Messages, etc.
Regards, Thomas
Michiel van den Berg wrote:
Hi all,
Do not know if to report this as bug or feature request.
When creating a new email box on a ISP mail server usually the folders are created upon first mail or by the mail client. in this case only the inbox is created upon first mail before when using squirrelmail or thunderbird via imap the client would create the appropriate other boxes (drafts, trash and sent) roundcube does not do this yet, which leads to errors when writing new messages or deleting existing messages from new inboxes.
Sorry to not post a patch right now I just noticed this and might come up with a patch later.
rds,
Michiel van den Berg