From d31c30f2298eada1d8f37be5b2714226f228fbd1 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 30 May 2018 08:56:44 -0300 Subject: Populate mutt samples --- custom.dot/mutt/aliases.sample | 1 + custom.dot/muttrc.sample | 87 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 88 insertions(+) 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 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 "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 \Zexample "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" + +# -------------------------------- +# 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 -- cgit v1.2.3