diff options
-rw-r--r-- | custom.dot/mutt/aliases.sample | 1 | ||||
-rw-r--r-- | custom.dot/muttrc.sample | 87 |
2 files changed, 88 insertions, 0 deletions
diff --git a/custom.dot/mutt/aliases.sample b/custom.dot/mutt/aliases.sample index e69de29..f81bf73 100644 --- a/custom.dot/mutt/aliases.sample +++ b/custom.dot/mutt/aliases.sample @@ -0,0 +1 @@ +alias username User Name <user@example.org> diff --git a/custom.dot/muttrc.sample b/custom.dot/muttrc.sample index e69de29..4bd43ff 100644 --- a/custom.dot/muttrc.sample +++ b/custom.dot/muttrc.sample @@ -0,0 +1,87 @@ +# +# ^. .^ +# (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 +# --------------------------------- +macro generic "<esc>1" ":source ~/.custom/mutt/profiles/someuser@example.net \n:set from\n" +macro generic "<esc>2" ":source ~/.custom/mutt/profiles/someuser@example.info \n:set from\n" +macro generic "<esc>3" ":source ~/.custom/mutt/profiles/anotheruser@example.info \n:set from\n" +macro generic "<esc>4" ":source ~/.custom/mutt/profiles/anotheruser@example.com.br \n:set from\n" +macro generic "<esc>5" ":source ~/.custom/mutt/profiles/anotheruser@example.net.br \n:set from\n" +macro generic "<esc>6" ":source ~/.custom/mutt/profiles/anotheruser@example.com \n:set from\n" + +# --------------------------------- +# Multiple accounts: compose macros +# --------------------------------- +macro compose \Zexample "<edit-from><kill-line>someuser <someuser@example.net>\n:source ~/.custom/mutt/profiles/someuser@example.net\nps" +macro compose \Zrexample "<edit-from><kill-line>someuser <someuser@example.info>\n:source ~/.custom/mutt/profiles/someuser@example.info\npf" +macro compose \Zsexample "<edit-from><kill-line>anotheruser <anotheruser@example.info>\n:source ~/.custom/mutt/profiles/anotheruser@example.info\npf" +macro compose \Zexample "<edit-from><kill-line>anotheruser <anotheruser@example.com.br>\n:source ~/.custom/mutt/profiles/anotheruser@example.com.br\npf" +macro compose \Zanother "<edit-from><kill-line>anotheruser <anotheruser@example.net.br>\n:source ~/.custom/mutt/profiles/anotheruser@example.net.br\npf" +macro compose \Zsomeother "<edit-from><kill-line>anotheruser <anotheruser@example.com>\n:source ~/.custom/mutt/profiles/anotheruser@example.com\npf" + +# -------------------------------- +# 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 "\Zexample\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 |