thunderbird / thunderbird-android

K-9 Mail – Open Source Email App for Android
https://k9mail.app/
Apache License 2.0
9.47k stars 2.42k forks source link

Duplicate mail notification, when moving mail on thunderbird desktop #7768

Open ChristopherWalz opened 3 weeks ago

ChristopherWalz commented 3 weeks ago

Checklist

App version

6.802

Where did you get the app from?

Google Play

Android version

14

Device model

Samsung A52s

Steps to reproduce

  1. Have thunderbird opened on desktop
  2. Have a thunderbird filter rule, which moves a message from the inbox to another folder
  3. Receive a message which triggers the filter rule and gets moved to another folder
  4. K-9 will receive 2 notifications about the same message

IMAP account on my own website (email provider is all-inkl)

Expected behavior

Receive 1 notification

Actual behavior

Receive 2 notifications

Logs

No response

cketti commented 3 weeks ago

Client-side filters can't avoid the race condition where more than one client could see a new message before one of them is able to move the message to a different folder.

K-9 Mail should remove the notification for the message in the inbox once it has been moved to a different folder. However, if you enabled notifications for the folder the message is moved into, you will still get two notifications (with the first one being removed once the app gets notified that the message has been removed from the inbox).

Your options are:

ChristopherWalz commented 2 weeks ago

Correct. The first notification should be removed, so we would only end up with one notification.

cketti commented 2 weeks ago

So you're saying the first notification is not removed for you? Can you please record a debug log while receiving a message that is moved to a different folder by a filter?

ChristopherWalz commented 2 weeks ago

It is not removed. How to record a debug log? I will try tomorrow.

cketti commented 2 weeks ago

https://github.com/thunderbird/thunderbird-android/wiki/LoggingErrors

ChristopherWalz commented 2 weeks ago

Sorry, but this seems to be quite difficult. I don't wanna install adb. There should be a way to extract the file from within the app.

cketti commented 2 weeks ago

The wiki page contains instructions on how to export the log from within the app.

If the app isn't crashing during startup, you can export the debug log from inside the app. Go to Settings → General settings → Debugging, then select Export logs from the menu. You'll be prompted for a location to save the log to.

ChristopherWalz commented 2 weeks ago

Ok, here is the log file. I had to remove some lines in the beginning (hopefully nothing important) and anonymize everything else. I hope you will still be able to find the problem.

Mail info From: Foo Bar from@example.com To: to@example.com subject: test_mail_subject

App options:

k9_logs.txt