Re: Is there a reason why the trashed flag is not synced?

Subject: Re: Is there a reason why the trashed flag is not synced?

Date: Wed, 12 May 2021 07:10:13 +0200

To: Michael J Gruber


From: Reto

On Tue, May 11, 2021 at 08:48:45AM +0200, Michael J Gruber wrote:
> If you sync gmail labels to exact copies in different folders then you're not
> holding it right, sorry ;)

> Gmail is not an IMAP service; it has an IMAP API which exposes labels as
> folders, with all the caveats which this implies. That's why there are
> better ways to sync Gmail with a notmuch mail store (gmailieer).

Better is always a relative term. I prefer a standardized protocol over some
homebrew stuff.

> I don't think notmuch should break its design principle (1 message id, 1
> message) just to work around a problem caused by a wrong sync procedure:
> that "delete instruction" is a result (merely: artifact) of speaking IMAP to Gmail.

It's not only gmail, really any IMAP server.
If you have a message in multiple folders at the same time (which is entirely
reasonable, think "todo" + where it actually should go after processing).
They all have the same message ID.

Only because you delete the copy from todo doesn't mean that you want it gone
from other places as well.

Sure, you could move instead of copying...
But that means that you may now need to hunt through multiple folders instead of
being able to grab the message from the actual mbox it should be in.

IMAP doesn't impose a workflow, just because yours happens to be a certain way
doesn't make it the gold standard ;)

notmuch mailing list --
To unsubscribe send an email to