gauteh / lieer

Fast email-fetching and sending and two-way tag synchronization between notmuch and GMail
http://lieer.gaute.vetsj.com
Other
494 stars 60 forks source link

FYI email read in gmail becomes unread in notmuch and gmail upon sync #264

Closed borwick closed 4 months ago

borwick commented 6 months ago

I am seeing email that I've read in gmail be downloaded as unread by notmuch new. This only happens for email that I have received in gmail and read in gmail prior to synchronizing the message for the first time.

Steps to reproduce

  1. receive new email via gmail
  2. read the email in gmail
  3. run "notmuch new"
  4. in notmuch, I see the email but it is marked unread.
  5. run "notmuch new" again
  6. at this point the message in gmail is marked unread, because it was unread in notmuch

If I then read it again via gmail and run "notmuch new" to sync again, then it stays read.

My configuration

.notmuch/hooks/pre-new

export LD_LIBRARY_PATH=/opt/local/lib/
source ~/.virtualenvs/lieer2/bin/activate
cd ~/Mail
gmi sync

Version bisection

Here's when I see vs. don't see this behavior for recent lieer versions:

version see this behavior?
v1.1 No
v1.3 No
v1.4 Yes
v1.5 Yes
v1.6 Yes
euglevi commented 5 months ago

I think this is related to #229.

gauteh commented 4 months ago

See #229, the issue is probably identified with a workaround for now.