mirror of
https://github.com/chatmail/core.git
synced 2026-04-19 14:36:29 +03:00
Ignore messages from all spam folders if there are many
For example, if there is both a Spam and Junk folder, both of them should be ignored, even though only one of them can be a ConfiguredSpamFolder.
This commit is contained in:
@@ -40,8 +40,6 @@ def dc_account_extra_configure(account):
|
||||
# We just deleted the folder, so we have to make DC forget about it, too
|
||||
if account.get_config("configured_sentbox_folder") == folder:
|
||||
account.set_config("configured_sentbox_folder", None)
|
||||
if account.get_config("configured_spam_folder") == folder:
|
||||
account.set_config("configured_spam_folder", None)
|
||||
|
||||
setattr(account, "direct_imap", imap)
|
||||
|
||||
|
||||
@@ -1468,6 +1468,15 @@ class TestOnlineAccount:
|
||||
|
||||
Unknown message in Spam
|
||||
""".format(ac1.get_config("configured_addr")))
|
||||
ac1.direct_imap.append("Junk", """
|
||||
From: unknown.address@junk.org
|
||||
Subject: subj
|
||||
To: {}
|
||||
Message-ID: <spam.message@junk.org>
|
||||
Content-Type: text/plain; charset=utf-8
|
||||
|
||||
Unknown message in Junk
|
||||
""".format(ac1.get_config("configured_addr")))
|
||||
|
||||
ac1.set_config("scan_all_folders_debounce_secs", "0")
|
||||
lp.sec("All prepared, now let DC find the message")
|
||||
|
||||
Reference in New Issue
Block a user