Menu

#10 Variable Sent Folder doesn't respect mailbox list settings

open
nobody
None
5
2007-11-09
2007-11-09
Sam Wilson
No

The folder list (in the compose view) that is provided the by Variable Sent
Folder plugin doesn't display its folders according to the user's
preference. Folder lists can be displayed as indented, dot-delimited,
etc., but Variable Sent Folder only ever displays these lists in one way.

It's not a major thing, but when scrolling through a long list of folders
it's quite easy to forget what a folder's parent is.

Here's the patch to fix this issue:

--- setup.php 2007-11-07 15:58:41.000000000 -0800
+++ setup.php.orig 2003-07-19 00:54:28.000000000 -0700
@@ -83,7 +83,12 @@
echo '<option value="' . SMPREF_NONE . '"' .
($sent_folder == SMPREF_NONE ? ' selected' : '') .
">&lt;Do not Save&gt;</option>\n";
- echo sqimap_mailbox_option_list($imapConnection);
+ for ($boxnum = 0; $boxnum < count($boxes); $boxnum++) {
+ echo '<option value="' . $boxes[$boxnum]['unformatted'] . '"' .
+ ($sent_folder == $boxes[$boxnum]['unformatted'] ? ' selected' :
'') .
+ '>' .
+ $boxes[$boxnum]['formatted'] . "</option>\n";
+ }
echo "</select>\n";
}

Discussion


Log in to post a comment.