Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2 tasks done
ChristopherWalz opened this issue Apr 22, 2024 · 8 comments
Open
2 tasks done
Labels
type: bug Something is causing incorrect behavior or errors unconfirmed Newly reported issues awaiting triage or confirmation

Comments

@ChristopherWalz
Copy link

Checklist

  • I have used the search function to see if someone else has already submitted the same bug report.
  • I will describe the problem with as much detail as possible.

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

@ChristopherWalz ChristopherWalz added type: bug Something is causing incorrect behavior or errors unconfirmed Newly reported issues awaiting triage or confirmation labels Apr 22, 2024
@cketti
Copy link
Member

cketti commented Apr 22, 2024

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:

  • Use server-side filtering. That way messages are moved before any client is able to see it in the inbox.
  • Disable notifications for the folder the message is moved into.

@ChristopherWalz
Copy link
Author

ChristopherWalz commented Apr 23, 2024

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

@cketti
Copy link
Member

cketti commented Apr 23, 2024

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
Copy link
Author

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

@cketti
Copy link
Member

cketti commented Apr 23, 2024

@ChristopherWalz
Copy link
Author

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
Copy link
Member

cketti commented Apr 24, 2024

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
Copy link
Author

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:

  • disabled unified folder
  • only manual email retrieve
  • push directories: all

k9_logs.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something is causing incorrect behavior or errors unconfirmed Newly reported issues awaiting triage or confirmation
Projects
None yet
Development

No branches or pull requests

2 participants