'selected' => $sent_mail_folder
);
$t->set('ssm_tabindex', ++$tabindex);
+
+ /* Check to make sure the sent-mail folder is created - it needs
+ * to exist to show up in drop-down list. */
+ $imp_folder = IMP_Folder::singleton();
+ if (!$imp_folder->exists($sent_mail_folder)) {
+ $imp_folder->create($sent_mail_folder, true);
+ }
+
$t->set('ssm_folders', IMP::flistSelect($ssm_folder_options));
} else {
if (!empty($sent_mail_folder)) {
v4.3.6-cvs
----------
+[mms] Make sure sent-mail folders exist if using the drop-down selection list
+ on the compose page (Bug #8520).
[mms] When replying to list, correctly extract e-mail address if multiple
entries exist in the List-Post header (Bug #8719).
[mms] For messages marked as innocent but not moved to Inbox, don't report
if (!empty($GLOBALS['conf']['user']['select_sentmail_folder']) &&
!$GLOBALS['prefs']->isLocked('sent_mail_folder')) {
$imp_folder = IMP_Folder::singleton();
+
+ /* Check to make sure the sent-mail folders are created - they
+ * need to exist to show up in drop-down list. */
+ foreach ($identities as $val) {
+ if (!$imp_folder->exists($val[3])) {
+ $imp_folder->create($val[3], true);
+ }
+ }
+
$flist = array();
foreach ($imp_folder->flist() as $val) {
$tmp = array('l' => $val['abbrev'], 'v' => $val['val']);