[neomutt-users] Account switching (IMAP): some account-specifics persist on switch.

Dom (shymega) Rodriguez shymega at shymega.org.uk
Sun Sep 17 01:50:41 CEST 2023


On Thu, Sep 14, 2023 at 07:29:15AM +0000, Pietro Cerutti wrote:
> On Sep 13 2023, 22:17 UTC, "Dom (shymega) Rodriguez" <shymega at shymega.org.uk> wrote:
> > Hello,
> > 
> > I've recently switched (back) to Neomutt from my webmail client.
> > 
> > I've got everything setup, quite happy with it thus far, if it wasn't for one
> > issue that persists.
> > 
> > Basically, I have account-specific configurations, and use `account-hook` in
> > `$XDG_CONFIG_DIR/neomutt/neomuttrc` to activate these settings.
> > 
> > However, it seems that when I switch from say, the Git account, to my
> > personal account, certain settings persist, where, for example, the Drafts
> > folder will still be set to the Git account's Drafts folder, so when I
> > draft an email from the *Personal* account, it's saved in the Git's
> > account. Or vice versa.
> > 
> > I've sanitised my config, and put it into a GitHub repository for review[0].
> > 
> > Am I missing something?
> > 
> > Thank you.
> > 
> > [0]: https://github.com/shymega/neomutt-cfg-bug
> 
> This is the approach I've developed to handle the switching between IMAP
> accounts as seamless as possible. You might want to take a look and compare
> it with yours:
> 
> https://github.com/neomutt/dyk/blob/main/_dyk/008.md

I've just taken a look at your approach, and integrated it on my end.

It's working to switch accounts - do I not need 'account-hook' or 'folder-hook'
with this approach?

However, I'm still finding my Drafts in the wrong account, or deleted items in
the wrong account.

I should mention - I'm using DavMail on a remote server, sync'd with `mbsync`to
a local Dovecot IMAP <-> IMAP setup, where Neomutt on my local machine then
accesses those mailboxes.

Bit complex, but I think it should work? Maybe my Dovecot config is to blame..

Best wishes,
--
Dom Rodriguez
GPG Fingerprint: EB0D 45E6 D0DC 1BA1 A2B5  FC24 72DC F123 1E54 BD43
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://mailman.neomutt.org/pipermail/neomutt-users-neomutt.org/attachments/20230917/45aab78f/attachment.sig>


More information about the neomutt-users mailing list