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