Skip to content
Snippets Groups Projects
Unverified Commit 0961f1d6 authored by Christoph Wurst's avatar Christoph Wurst Committed by GitHub
Browse files

Merge pull request #728 from j0s/fix/dovecot-sieve

Handle dovecot sieve folder when subdir of INBOX
parents 3b33d486 f208a2ef
No related branches found
No related tags found
No related merge requests found
......@@ -45,7 +45,16 @@ class FolderMapper {
$folders = [];
foreach ($mailboxes as $mailbox) {
if ($mailbox['mailbox']->utf8 === 'dovecot.sieve') {
/**
* This is a temporary workaround for when the sieve folder is a subfolder of
* INBOX. Once "#386 Subfolders and Dovecot" has been resolved, we can go back
* to just comparing to 'dovecot.sieve'.
*/
$dovecotSieveFolders = [
'dovecot.sieve',
'INBOX.dovecot.sieve'
];
if (in_array($mailbox['mailbox']->utf8, $dovecotSieveFolders, true)) {
// This is a special folder that must not be shown
continue;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment