Fix recognizing Sent folder on search if current folder has been changed by plugins in meantime

pull/5507/head
Aleksander Machniak 8 years ago
parent e17e8851f1
commit 0e5a167cd2

@ -134,6 +134,12 @@ if ($search_str) {
array_unshift($mboxes, $mbox);
}
if ($scope != 'all') {
// Remember current folder, it can change in meantime (plugins)
// but we need it to e.g. recognize Sent folder to handle From/To column later
$RCMAIL->output->set_env('mailbox', $mbox);
}
$result = $RCMAIL->storage->search($mboxes, $search_str, $imap_charset, $sort_column);
}

Loading…
Cancel
Save