summaryrefslogtreecommitdiff
path: root/plugins/archive/archive.js
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/archive/archive.js')
-rw-r--r--plugins/archive/archive.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/archive/archive.js b/plugins/archive/archive.js
index 17a1ecdb4..2e5267425 100644
--- a/plugins/archive/archive.js
+++ b/plugins/archive/archive.js
@@ -27,7 +27,7 @@ function rcmail_is_archive()
// check if current folder is an archive folder or one of its children
if (rcmail.env.mailbox == rcmail.env.archive_folder
- || rcmail.env.mailbox.indexOf(rcmail.env.archive_folder + rcmail.env.delimiter) != 0
+ || rcmail.env.mailbox.startsWith(rcmail.env.archive_folder + rcmail.env.delimiter)
) {
return true;
}