Created
November 13, 2019 14:00
-
-
Save jindraj/fb02a43d24ea9607832b8e985dd63ba7 to your computer and use it in GitHub Desktop.
multiaccount
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Multiaccount setup | |
# use F1 and F2 for switching between accounts | |
~/.neomutt/neomuttrc | |
``` | |
macro compose,index,pager <f1> \ | |
"<enter-command>source ~/.neomutt/neomuttrc.profile-personal<enter>\ | |
<enter-command>echo 'Switched to personal profile'<enter>" \ | |
"switch to personal profile" | |
macro compose,index,pager <f2> \ | |
"<enter-command>source ~/.neomutt/neomuttrc.profile-work<enter>\ | |
<enter-command>echo 'Switched to work profile'<enter>" \ | |
"switch to work profile" | |
``` | |
~/.neomutt/neomuttrc.profile-personal | |
``` | |
# generic configuration for account | |
set from = [email protected] | |
set realname = Firstname Lastname | |
set signature = ~/.neomutt/signature-personal | |
# smtp configuration for account | |
set smtp_url = "smtps://username.personal@personalserver:465/" | |
# imap configuration for account | |
# sorry I don't use imap :) | |
# mailboxes if | |
unmailboxes * | |
mailboxes +INBOX # … | |
``` | |
~/.neomutt/neomuttrc.profile-work | |
`# generic configuration for account | |
set from = [email protected] | |
set realname = Firstname Lastname | ACME | |
set signature = ~/.neomutt/signature-work | |
# smtp configuration for account | |
set smtp_url = "smtps://username-work@workserver:465/" | |
# imap configuration for account | |
# sorry I don't use imap :) | |
# mailboxes if | |
unmailboxes * | |
mailboxes +INBOX # … | |
``` | |
additionaly you can have different signatures for any account. See set signature lines above | |
~/.neomutt/signature-personal | |
``` | |
Firstname Lastname | |
Phone: +1234567890 | |
``` | |
~/.neomutt/signature-work | |
``` | |
Firstname Lastname | |
Phone: +0987654321 | |
Position @ Company | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment