forked from richo/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 5
/
muttrc
183 lines (178 loc) · 7.32 KB
/
muttrc
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
# .muttrc file - Suresh Ramasubramanian
# Don't display certain headers
ignore *
#unignore From To Cc Subject Date Reply-To Organization X-Mailer User-Agent
unignore From To Cc Subject Date
# Order to display the headers in
hdr_order From: Date: To: Cc: Subject:
# Default From: line for when mailing in batch mode
#set certificate_file=mutt.crt
# XXX Add this header
my_hdr X-PGP-Key: http://natalya.psych0tik.net/~richo/pubkey.asc
set use_envelope_from=yes
#
set timeout=15
set mail_check=120
set ssl_starttls=yes
set beep_new=yes
# Automatically begin editing messages
set autoedit=yes
set edit_headers
# Append messages to other mailboxes automatically
unset confirmappend
# Automatically delete messages
#set delete=yes
# View html mails using lynx
set implicit_autoview
auto_view text/html application/x-pgp-message
auto_view text/patch text/x-diff
auto_view text/x-patch text/x-diff
set mailcap_path="~/.mailcap"
set mailcap_sanitize=yes
# envelope sender must match
set envelope_from
# Reply FASTER!
#set fast_reply
# Don't save outgoing attachments
unset fcc_attach
# Dont include self in reply
unset reply_self
# Include full headers in replies
# set header
#set hostname - if not machine name (uname -a)
#will be used for - among other things - making
#up message-ids
#set hostname="hostname.example.com"
# Automatically quote message
set include=yes
# Set quotemark to 1 byte
set indent_str="> "
set index_format = "%4C %Z %{%b %d} %-15.15F (%4l) %s"
set forward_format="Fw: %s" # subject in forwarded messages
set date_format="%d/%m/%y %H:%M %Z"
set quote_regexp="^([A-Za-z ]+>|[]%>:|}-][]>:|}-]*)"
#set reply_regexp="^(re([\\[0-9\\]+])*|aw):[ \t]*"
set reply_regexp='^((re(\[[0-9]+\])?: *)?(\^+\] *)?)*'
set mime_forward=ask-yes
# Use mutt.view as my pager
# set pager=mutt.view
set edit_headers
# Use vim as the editor - this line will wrap
# Set wordwrap on in vim to automatically wrap lines -
# no :gq all the time
set editor="vim +':set textwidth=77' +':set wrap' +\`awk '/^-- $/ {print i; exit} {i++}' %s\` %s"
#set visual=vim # editor invoked by ~v in the builtin editor
# set format=flowed
set text_flowed
# dont mark messages old
set nomark_old
# Location for postponed messages
#set postponed="=postponed"
# I don't want to resume postponed messages
#set recall=no
# Save copies of outgoing e-mail
# Don't confirm using Reply-To: headers
set reply_to=yes
# Delete empty mailboxes
unset save_empty
set signature = "fortune_excuse -e -w72|"
# Use as from the address mail was sent to
# You'd have to define $alternates for this
# set reverse_name
# Set my web browser
#set web_browser=$BROWSER
# Save mail to =received when I press ">", like in Elm
#set mbox="=received"
# Apply operations to tagged messages automatically
set auto_tag
# Define the directory where mutt looks for mailboxes to
# report new mail
#mailboxes `echo $HOME/mail/*`
# Tell mutt which mails to recognize as mailing lists
# Don't ask to move read messages to mbox on exit
set move=no
###
# Bindings - change key bindings
###
# Customize the pager
bind pager [ previous-line
bind pager < previous-line
bind pager ] next-line
bind pager > next-line
bind pager down next-page
bind pager d delete-message
bind pager up previous-page
# dual window view in mutt
# set pager_index_lines=10
# Similar settings for the index
bind index [ previous-line
bind index ] next-line
bind index n next-unread
bind index N previous-unread
# imitate the old search-body function
macro index \eb '/~b ' 'search in message bodies'
# simluate the old url menu
macro index \cb |urlview\n 'call urlview to extract URLs out of a message'
macro pager \cb |urlview\n 'call urlview to extract URLs out of a message'
# Show documentation when pressing F1
macro generic <f1> "!less /usr/doc/mutt/manual.txt\n" "Show Mutt documentation"
macro index <f1> "!less /usr/doc/mutt/manual.txt\n" "Show Mutt documentation"
macro pager <f1> "!less /usr/doc/mutt/manual.txt\n" "Show Mutt documentation"
# Set and source our alias file
set alias_file=~/.mutt/aliases
source ~/.mutt/aliases
# pgp stuff - Snarfed from Roland Rosenfeld http://www.spinnaker.de
# For Mutt 1.3.x versions only - go to his website if you want the
# version for older (1.2.5i say) mutts
#source ~/gpg.rc
set fcc_clear
set forward_decrypt
unset pipe_decode
#set pgp_ignore_subkeys # On OpenPGP keys only show the main key, not the sub.
set pgp_autosign # pgp sign every outgoing mail. (send-hook?)
#unset pgp_autoencrypt # pgp encrypt every outgoing mail. (send-hook?)
#set pgp_create_traditional=ask-no # Use old-style PGP? (don't do it!)
set pgp_replyencrypt # Encrypt replies on encrypted mail
set pgp_replysign # Sign replies on signed mail
#set pgp_replysignencrypted # Sign replies on encrypted mail
#unset pgp_retainable_sigs # disable retainable signatures.
set pgp_verify_sig=yes # ask me whether I want to check a pgp signature
#set pgp_timeout=7200 # forget PGP passphrase after 7200 seconds (=2 hours)
#set pgp_strict_enc # allway use QP enc. with PGP.
#unset pgp_long_ids # display 64bit PGP key-ids (don't change this!)
#set pgp_show_unusable # show unusable PGP keys in menu
# %n = number %k = key id %K = key id of the principal key
# %u = user id %a = algorithm %A = algorithm of the princ. key
# %l = length %L = length of the princ. key
# %f = flags %F = flags of the princ. key
# %c = capabilities %C = capabilities of the princ. key
# %t = trust/validity of the key-uid association
set pgp_entry_format="%4n %t%f %[%y/%m/%d] %4l/0x%k %-4a %2c %u"
set pgp_sort_keys=trust
# Once you are done with composing a mail in vim, and
# before you press y to send out an email, just press
# S and enter your PGP passphrase to pgp-clearsign an
# email. Mutt uses PGP-MIME signatures by default, and
# several clients (most notably windows clients) absolutely
# hate the very idea of PGP-MIME :(
# Put your gpg key id below instead of my key 0xEDEDEFB9
set pgp_decode_command="gpg %?p?--passphrase-fd 0? --no-verbose --batch --output - %f"
set pgp_verify_command="gpg --no-verbose --batch --output - --verify %s %f"
set pgp_decrypt_command="gpg --passphrase-fd 0 --no-verbose --batch --output - %f"
set pgp_sign_command="gpg --no-verbose --batch --output - --passphrase-fd 0 --armor --detach-sign --textmode %?a?-u %a? %f"
set pgp_clearsign_command="gpg --no-verbose --batch --output - --passphrase-fd 0 --armor --textmode --clearsign %?a?-u %a? %f"
set pgp_encrypt_only_command="/usr/lib/mutt/pgpewrap gpg --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust --encrypt-to 0x89E72415 -- -r %r -- %f"
set pgp_encrypt_sign_command="/usr/lib/mutt/pgpewrap gpg --passphrase-fd 0 --batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust --encrypt-to 0x89E72415 -- -r %r -- %f"
set pgp_import_command="gpg --no-verbose --import -v %f"
set pgp_export_command="gpg --no-verbose --export --armor %r"
set pgp_verify_key_command="gpg --no-verbose --batch --fingerprint --check-sigs %r"
set pgp_list_pubring_command="gpg --no-verbose --batch --with-colons --list-keys %r"
set pgp_list_secring_command="gpg --no-verbose --batch --with-colons --list-secret-keys %r"
set pgp_autosign=yes
set pgp_auto_decode=yes
set pgp_sign_as=0x89E72415
set pgp_replyencrypt=yes
set pgp_timeout=1800
set pgp_good_sign="^gpg: Good signature from"
source ~/.mutt/colors.conf
source ~/.muttrc.local