On Sat, Sep 25, 2021 at 08:16:01AM +0530, Vikas Rawal wrote: > First of all, thanks Oswald and jrun for your responses. There are many > scattered emails in the mailing list archives related to gmail's behaviour > and it is not easy to find what is relevant to fix the problem one is > facing. I had in fact tried but failed to resolve it. So, pointed > suggestions of jrun are very helpful. > > I think, given that a lot of people use gmail, there is perhaps a need for > a more detailed how-to on the issues. Various guides available on the issue > only provide sketchy instructions and do not really deal with the quirks > one finds in gmail. > > Coming now to jrun's suggestions. If I understand it right, these are > primarily focussed on how to propagate neomutt/notmuch tags to the IMAP > server. My bigger problem is that whatever I delete on gmail's web > interface does not get propagated to my local maildir. Mails just stay in > my local maildir. This seems to be an absurd behaviour. > > > > before anyting, one thing that might matter here; i only sync All Mail: > > Far :gmailusrname-remote:"[Gmail]/All Mail" > > > > Is this really necessary? I sync INBOX, Sent and Trash. Should I switch to > syncing "All Mail"? Isn't that a rather drastic step which would change my > Maildirs significantly? I want to be sure before I do anything like that.
don't think so; expunge by passes Gmail's tags (inbox for instance is a just a tag) and instructs the server to actually delete the msg. first try on a test account i guess. > now from `man 1 mbsync`: (emphasise is mine) > > Make sure your IMAP server does not auto - expunge deleted messages... > > *Specifically*, Gmail needs to be configured not to do it. [gmail-settings] > > > > [gmail-settings]: at gmail's web interface; > > Gear Icon > See all settings > Forwarding and POP/IMAP: > > > > 1. Auto-Expunge off - Wait for the client to update the server. > > > > This was fine in my case. > > > > 2. When a message is marked as deleted and expunged from the last visible > > IMAP folder: > > Archive the message (default) > > * Move the message to the Bin > > Immediately delete the message forever > > > > I was on the third option. Have now switched to the second. i understand it to give a buffer in time (i.e. trash-to-bin not expunge-into-the-void). ... but don't think make a difference in terms of propagations. > > # macro index,pager D "<purge-thread><sync-mailbox>" > > macro index,pager D "<delete-thread><vfolder-window-reset>" > > > > This does not seem to work for me. It takes me to a compose window with > "window-reset>" as the addressee! then review your neomutt config; you might have other bindings interfering. > Also, if I understand it correctly, you are using the neomutt's deletion > rather than using notmuch to mark the messages as deleted. I was hoping to > propagate the notmuch tag to gmail. > google this: mapping tags imap notmuch - jrun _______________________________________________ isync-devel mailing list isync-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/isync-devel