aboutsummaryrefslogtreecommitdiff
path: root/custom.dot/muttrc.sample
blob: 4bd43fffe1178146861a0e154087b80a9794c88e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
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