On Tue, May 12, 2015 at 2:38 AM, Suvayu Ali <fatkasuvayu+li...@gmail.com> wrote:
> Hi Xu,
>
> On Mon, May 11, 2015 at 03:19:35AM -0400, Xu Wang wrote:
>>
>> If you are curious about motivation, it is because GMail treats labels
>> as different folders. So when we sync back, to have a message marked
>> as read in GMail, it must be marked as read in all labels (or in
>> Mutt's point of view, folders).
>
> I think something else is going wrong.  As far as I understand, Gmail
> does not behave this way.  I have been using OfflineIMAP and mutt with
> Gmail for several years now, I have not noticed this behaviour.
>
> That said, there is one limitation though.  Gmail does not allow two
> operations on the same sync per message file.  What I mean is, if you
> change the contents, as well as the file name, only one will succeed,
> usually the content change.  This happens when, say, you rethread a
> message while reading it, rethreading alters the content, reading alters
> the filename.  Essentially any maildir operation would change the
> filename, and anything that rewrites the message file, like a
> postsynchook, rethreading, will rewrite the contents.
>
> Hope this helps,

Dear Suyavu,

This helps a lot. I am starting to piece some things together. I am
not sure if I am rethreading or not. Looking at my .muttrc, the only
thing with "threads" is:
set sort="threads"

Let me confirm that you do not have the same problem as I. If in mutt,
you delete (or do you "save"?) a message, and then you sync
offlineimap, and then on chromium or firefox you go to gmail.com and
click on "all mail", can you confirm that (1) the message is there and
(2) it is marked as read?

I have seen other people who have what I think is the same problem as
I. I give two examples and their sources below:

Example 1
source: https://hynek.me/articles/my-mutt-gmail-setup/
"There’s one blemish left: Reading mails in the respective folders
doesn’t mark them read in the archive. Also, you have to start using
Gmail’s labels as folders again for the same reason: One mail with
three labels means three folders with an unread mail. I haven’t found
a way to mitigate it but ignoring it and catch up from time to time.
Let me know if you have found a cure!"

Example 2
source: https://bbs.archlinux.org/viewtopic.php?pid=776224#p776224
In response to <<First issue -- When I delete an email in mutt from
the Inbox, the copy of the message in the archive and label folder(s)
still has the unread message flag attached. Is there a way to set a
hook to find all the matching messages in the folders and remove the
unread flag?>>

The solution provided is:
<<I've been annoyed by this as well.  Basically i have to do this:

1. read the email in the inbox
2. sync the mailbox
3. wait ~3 minutes for offlineimap to sync the 'read' status back to
gmail which then updates all the other labels to read as well
4. delete/move the message>>

Any advice would be highly appreciated.

Thank you for your kind responses. This list is very friendly and
welcoming and I very much am appreciative.

Xu

Reply via email to