nylas / sync-engine

:incoming_envelope: IMAP/SMTP sync system with modern APIs
https://nylas.com/docs/platform
GNU Affero General Public License v3.0
3.5k stars 354 forks source link

Remote message removal not reflected in local state #446

Closed FelixHenninger closed 7 years ago

FelixHenninger commented 7 years ago

Dear Nylas team,

thank you very much for your ongoing effort with the client and sync engine! I really enjoy using both. However, one consistent issue remains:

Phenomenon

Mails deleted and moved on the IMAP server remain in place in the local copy maintained by the sync engine, though unread status and stars are synced correctly.

I (have to) use multiple clients when switching between terminals, in particular Nylas Mail with a local sync engine, Thunderbird (52.0.1) and a webmailer. All connect to the same (custom) IMAP mailbox, and synchronize correctly (i.e. new mails come in, and unread state is reflected correctly), however in Nylas (2.0.18) emails deleted (or moved out of a mailbox) on the server by another client remain in place even after a sync. Resetting the email cache via the preferences solves this, but it also triggers a (fairly time-consuming) complete resync. As far as I can tell, the messages are not pushed to the server again from the sync engine.

I have looked at the activity log, but I can't find anything suspicious. If there are any diagnostics I might run, please do let me know, I would be happy to report back the results.

It would be fantastic if message-level changes were also reflected in the sync engine (I might finally get to the prized inbox zero!). Even a workaround would be very welcome.

Software versions
Third-party plugins

None

Is the issue related to a specific email provider (Gmail, Exchange, etc.)?

No, I can replicate this on a university mailserver (imap.uni-landau.de) and a private mail server.

Is the issue reproducible with a particular attachment, message, signature, etc?

Not as far as I can tell -- this is an issue for any message.


Thanks again for your effort in building this great software, and I would massively appreciate your support in this issue, which I really hope is not due to my setup (though I would love to find out).

All the very best,

-Felix

khamidou commented 7 years ago

Hi Felix! Thank you for filling this very detailed bug report. Unfortunately, this is affecting https://github.com/nylas/nylas-mail and not the Python sync-engine. Could you re-open this bug in the nylas-mail issue tracker?

Thank you!

FelixHenninger commented 7 years ago

@khamidou Thanks for your kind words, and apologies for the misplaced issue! I'll move it to the nylas-mail repo.

FelixHenninger commented 7 years ago

Just as a pointer: The new issue is at https://github.com/nylas/nylas-mail/issues/3479