[neomutt-users] how to properly set $folder variable in account changing macro?

Floyd Anderson f.a at 31c0.net
Sat Jun 10 22:15:34 CEST 2017


On Sa, 10 Jun 17:57:34 +0200
toogley <toogley at mailbox.org> wrote:
>Hello List,
>
>i have two imap accounts. its settings are in their own file, so that i can source them for changing the account.
>
>In the account specific files, i unset imap_user and folder before setting the new values.
>However, when i change from the first to the second account, my folder is still from the old account while imap_user is from the new account.
>
>How can i fix that?

I found an old note in my configuration to set $folder always *before* 
any variables that use ‘+’ and ‘=’ mailbox shortcuts — just a guess 
because I’m still using `getmail`.

I’ve found [1] where $folder is set multiple times but that looks 
wrong. The arch example in [2] is even more plausible.

[1] <https://github.com/dmedvinsky/dotfiles/tree/master/mutt>
[2] <https://wiki.archlinux.org/index.php/Mutt#Multiple_accounts>


-- 
Regards,
floyd



PS: Thanks for killing my commit comment with your forced-push, so all 
my typos are gone. ;-)



More information about the neomutt-users mailing list