Send MDNs for messages deleted on the server

Now MarkseenMsgOnImap sends MDN even if it can't mark the message as
seen on the server.

To prevent multiple MDNs from being sent, MarkseenMsgOnImap is postponed
until the message is detected in a folder from which it is not going to
be moved.
This commit is contained in:
Alexander Krotov
2020-07-14 20:11:42 +03:00
committed by link2xt
parent 2aa808756e
commit 7bb6890f26
6 changed files with 100 additions and 58 deletions

View File

@@ -1542,7 +1542,6 @@ class TestOnlineAccount:
assert msg.is_encrypted(), "Message is not encrypted"
assert msg.chat == ac2.create_chat(ac4)
@pytest.mark.xfail
def test_immediate_autodelete(self, acfactory, lp):
ac1 = acfactory.get_online_configuring_account()
ac2 = acfactory.get_online_configuring_account(mvbox=False, move=False, sentbox=False)