Skip to content

Commit 6ac0cca

Browse files
committed
fix: Remove non-standard junk flag used by Thunderbird as it's moved to own PR
Signed-off-by: David Dreschner <[email protected]>
1 parent 1a31d56 commit 6ac0cca

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/Model/IMAPMessage.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ public function toDbMessage(int $mailboxId, MailAccount $account): Message {
535535
$msg->setFlagJunk(
536536
in_array(Horde_Imap_Client::FLAG_JUNK, $flags, true)
537537
|| in_array('junk', $flags, true)
538-
); // While this is not a standard IMAP flag, Thunderbird uses it to mark "junk"
538+
);
539539
$msg->setFlagNotjunk(in_array(Horde_Imap_Client::FLAG_NOTJUNK, $flags, true) || in_array('nonjunk', $flags, true));// While this is not a standard IMAP Flag, Thunderbird uses it to mark "not junk"
540540
$msg->setFlagImportant(in_array('$important', $flags, true) || in_array('$labelimportant', $flags, true) || in_array(Tag::LABEL_IMPORTANT, $flags, true));
541541
$msg->setFlagAttachments(false);
@@ -551,7 +551,6 @@ public function toDbMessage(int $mailboxId, MailAccount $account): Message {
551551
Horde_Imap_Client::FLAG_DELETED,
552552
Horde_Imap_Client::FLAG_DRAFT,
553553
Horde_Imap_Client::FLAG_JUNK,
554-
'junk', // While this is not a standard IMAP flag, Thunderbird uses it to mark "junk"
555554
Horde_Imap_Client::FLAG_NOTJUNK,
556555
'nonjunk', // While this is not a standard IMAP Flag, Thunderbird uses it to mark "not junk"
557556
'$phishing', // Horde has no const for this flag yet

0 commit comments

Comments
 (0)