fix!: Download outgoing messages only from Sentbox and if SentboxWatch is set (#7169)

Download outgoing messages only from Inbox and Mvbox (and Sent -- until `Config::SentboxWatch` is
dropped) to ensure they are sorted correctly with incoming messages. This way we actually do
server-side sorting. Otherwise it's possible that outgoing replies from other devices appear before
incoming messages. Users should CC/BCC/To themselves to see sent messages in Delta Chat.
This commit is contained in:
iequidoo
2025-09-04 06:32:37 -03:00
parent e14265ec5d
commit d957600df7
6 changed files with 48 additions and 12 deletions

View File

@@ -846,6 +846,7 @@ def test_dont_show_emails(acfactory, lp):
ac1.direct_imap.create_folder("Sent")
ac1.direct_imap.create_folder("Spam")
ac1.direct_imap.create_folder("Junk")
ac1.set_config("sentbox_watch", "1")
acfactory.bring_accounts_online()
ac1.stop_io()
@@ -955,7 +956,10 @@ def test_dont_show_emails(acfactory, lp):
msg = ac1._evtracker.wait_next_messages_changed()
# Wait until each folder was scanned, this is necessary for this test to test what it should test:
# Wait until each folder was scanned, this is necessary for this test to test what it should
# test. Need to wait two times because of "sentbox_watch" set (the same event is emitted for
# Sentbox currently).
ac1._evtracker.wait_idle_inbox_ready()
ac1._evtracker.wait_idle_inbox_ready()
assert msg.text == "subj message in Sent"