Bugfix.
This commit is contained in:
parent
9aa884a9c2
commit
f48f599ca2
1 changed files with 5 additions and 3 deletions
|
@ -21,12 +21,14 @@ function isSpecialMailbox( $box ) {
|
|||
$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) ||
|
||||
(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) );
|
||||
|
|
Loading…
Add table
Reference in a new issue