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

pull/6833/head
Aleksander Machniak 8 years ago
parent 9b8db4c9e0
commit 860a3b47e7

@ -132,6 +132,12 @@ if ($search_str) {
}
}
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