projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bugfix.
[squirrelmail.git]
/
functions
/
imap_mailbox.php
diff --git
a/functions/imap_mailbox.php
b/functions/imap_mailbox.php
index 3b0dfdd119361b6369244a2facac0bbb15f1c13e..f8243c5e56e7f4d7e80658059878ef238fdb475a 100755
(executable)
--- a/
functions/imap_mailbox.php
+++ b/
functions/imap_mailbox.php
@@
-21,12
+21,14
@@
function isSpecialMailbox( $box ) {
$move_to_trash, $move_to_sent, $save_as_draft,
$delimiter, $folder_prefix;
$move_to_trash, $move_to_sent, $save_as_draft,
$delimiter, $folder_prefix;
- $i = strpos( $sent_folder, $delimiter, strlen( $folder_prefix ) );
-
+ if ( $move_to_sent ) {
+ $i = strpos( $sent_folder, $delimiter, strlen( $folder_prefix ) );
+ }
+
$ret = ( (strtolower($box) == 'inbox') ||
($box == $trash_folder &&
$move_to_trash) ||
$ret = ( (strtolower($box) == 'inbox') ||
($box == $trash_folder &&
$move_to_trash) ||
- (substr( $sent_folder, 0, max( $i, strlen( $box ) ) ) == $box &&
+ (
substr( $sent_folder, 0, max( $i, strlen( $box ) ) ) == $box &&
$move_to_sent) ||
($box == $draft_folder &&
$save_as_draft) );
$move_to_sent) ||
($box == $draft_folder &&
$save_as_draft) );