[Tickets #8520] Sent mail folder does not auto-create

bugs at horde.org bugs at horde.org
Sat Aug 22 01:36:26 UTC 2009


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/8520
------------------------------------------------------------------------------
  Ticket             | 8520
  Created By         | bugs at skeena.net
  Summary            | Sent mail folder does not auto-create
  Queue              | IMP
  Version            | 4.3.4
  Type               | Bug
  State              | Unconfirmed
  Priority           | 2. Medium
  Milestone          |
  Patch              | 1
  Owners             |
+New Attachment     | compose.php_sent-mail-autocreate
------------------------------------------------------------------------------


bugs at skeena.net (2009-08-21 21:36) wrote:

If the sent mail folder is not a locked setting in prefs.php, users  
are able to choose where to save each message from a drop-down in the  
compose screen. If the default named sent-mail folder does not exist  
for that user, the drop-down defaults to the first existing folder  
(sorted case-sensitive alphabetically) -- often this is Drafts. IMP  
does not attempt to create the default sent-mail folder, except in the  
case where the Inbox is the *only* other existent folder.

If the sent mail folder setting is locked in prefs.php, users are not  
offered the drop-down menu and the sent mail folder *is* auto-created  
if it does not exist.

This is a regression of a much earlier bug; I found references to it  
from 2002 or so via Google. It may have been fixed in an earlier  
version of compose.php; see line 1001 in compose.php Revision  
2.800.2.16 (http://cvs.horde.org/co.php/imp/compose.php?r=2.800.2.16):

         if (!$imp_folder->exists($imp['stream'], $sent_mail_folder)) {
             $imp_folder->create($imp['stream'], $sent_mail_folder,  
$prefs->getValue('subscribe'));
         }

My patch creates the sent-mail folder much earlier on, so that it's  
ready by the time the drop-down appears.






More information about the bugs mailing list