From db5802b1349acc847362f6080928df5773d95a5a Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Mon, 9 Apr 2018 09:11:04 +0200 Subject: [PATCH] Archive: Skip early the request to move to archive folder from archive folder ... which may happen in multi-folder search results. --- plugins/archive/archive.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/archive/archive.php b/plugins/archive/archive.php index 266182434..8457478c6 100644 --- a/plugins/archive/archive.php +++ b/plugins/archive/archive.php @@ -152,7 +152,7 @@ class archive extends rcube_plugin ); foreach (rcmail::get_uids(null, null, $multifolder, rcube_utils::INPUT_POST) as $mbox => $uids) { - if (!$archive_folder || strpos($mbox, $archive_prefix) === 0) { + if (!$archive_folder || $mbox === $archive_folder || strpos($mbox, $archive_prefix) === 0) { $count = count($uids); continue; }