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

Pietro Cerutti gahr at gahr.ch
Thu Sep 14 09:29:15 CEST 2023


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



-- 
Pietro Cerutti
I have pledged to give 10% of income to effective charities
and invite you to join me - https://givingwhatwecan.org


More information about the neomutt-users mailing list