# # ^. .^ # (J) Custom mutt configuration # # See "Multiple accounts" session at muttrc # --------------- # Default profile # --------------- source "~/.custom/mutt/profiles/someuser@example.net" # --------------------- # Alternative addresses # --------------------- alternates ^someuser@example\\.net$ alternates ^someuser@example\\.info$ alternates ^anotheruser@example\\.info$ alternates ^anotheruser@example\\.com\\.br$ alternates ^anotheruser@example\\.net\\.br$ alternates ^anotheruser@example\\.com$ # ------------------------------------- # Old addresses mutt should be aware of # ------------------------------------- alternates ^someuser@company\\.org$ alternates ^someuser@project\\.org$ alternates ^someuser@family\\.org$ alternates ^anotheruser@collective\\.org$ # --------------------------------------------------- # Multiple accounts: generic macros # # Hit Esc + profile number to switch to that profile. # --------------------------------------------------- macro generic "1" ":source ~/.custom/mutt/profiles/someuser@example.net \n:set from\n" macro generic "2" ":source ~/.custom/mutt/profiles/someuser@example.info \n:set from\n" macro generic "3" ":source ~/.custom/mutt/profiles/anotheruser@example.info \n:set from\n" macro generic "4" ":source ~/.custom/mutt/profiles/anotheruser@example.com.br \n:set from\n" macro generic "5" ":source ~/.custom/mutt/profiles/anotheruser@example.net.br \n:set from\n" macro generic "6" ":source ~/.custom/mutt/profiles/anotheruser@example.com \n:set from\n" # --------------------------------- # Multiple accounts: compose macros # --------------------------------- macro compose \Zexample "someuser \n:source ~/.custom/mutt/profiles/someuser@example.net\nps" macro compose \Zrexample "someuser \n:source ~/.custom/mutt/profiles/someuser@example.info\npf" macro compose \Zsexample "anotheruser \n:source ~/.custom/mutt/profiles/anotheruser@example.info\npf" macro compose \Zdexample "anotheruser \n:source ~/.custom/mutt/profiles/anotheruser@example.com.br\npf" macro compose \Zanother "anotheruser \n:source ~/.custom/mutt/profiles/anotheruser@example.net.br\npf" macro compose \Zsomeother "anotheruser \n:source ~/.custom/mutt/profiles/anotheruser@example.com\npf" macro compose "1" "\Zexample" macro compose "2" "\Zrexample" macro compose "3" "\Zsexample" macro compose "4" "\Zdexample" macro compose "5" "\Zanother" macro compose "6" "\Zsomeother" # -------------------------------- # Multiple accounts: switch macros # -------------------------------- macro compose \Cx0 "\Zexample\Cx&1\n" # default and switch to 1 macro compose \Cx1 "\Zrexample\Cx&2\n" # switch to 2 macro compose \Cx2 "\Zsexample\Cx&3\n" # switch to 3 macro compose \Cx3 "\Zdexample\Cx&4\n" # switch to 4 macro compose \Cx4 "\Zanother\Cx&5\n" # switch to 5 macro compose \Cx5 "\Zsomeother\Cx&0\n" # switch to 0 # ------------------------ # Multiple accounts: hooks # ------------------------ send-hook "~f someuser@example.net" "source ~/.custom/mutt/profiles/someuser@example.net" send-hook "~f someuser@example.info" "source ~/.custom/mutt/profiles/someuser@example.info" send-hook "~f someuser@example.info" "source ~/.custom/mutt/profiles/anotheruser@example.info" send-hook "~f anotheruser@example.com.br" "source ~/.custom/mutt/profiles/anotheruser@example.com.br" send-hook "~f anotheruser@example.net.br" "source ~/.custom/mutt/profiles/anotheruser@example.net.br" send-hook "~f anotheruser@example.com" "source ~/.custom/mutt/profiles/anotheruser@example.com" # ---------------------------------------------------------------- # GPG: autoencrypt configuration # http://does-not-exist.org/mail-archives/mutt-users/msg11723.html # http://tanguy.ortolo.eu/blog/article117/mutt-hook-encrypt # ---------------------------------------------------------------- send-hook . unset pgp_autoencrypt send-hook '~C thisaddress' set pgp_autoencrypt send-hook '~C anotheraddress' set pgp_autoencrypt # --------------------------------------------------------------------------------- # Crypto # See #3665 (Encrypting postponed messages) – https://dev.mutt.org/trac/ticket/3665 # https://example.net/en/email/clients/mutt # https://dev.mutt.org/hg/mutt/rev/b38c4838976f # --------------------------------------------------------------------------------- set postpone_encrypt=yes set postpone_encrypt_as=0xFINGERPRINT #set crypt_opportunistic_encrypt=yes