]> Git — Sourcephile - julm/julm-nix.git/blob - homes/julm/mutt/muttrc
merge home-manager config
[julm/julm-nix.git] / homes / julm / mutt / muttrc
1 #set dotlock_program="/usr/bin/mutt_dotlock"
2 #charset-hook ^iso-8859-1$ utf-8
3 #macro index,pager S "|sa-learn --ham -<enter>" "Flag message as ham"
4 #macro index,pager s "|sa-learn --spam -<enter>" "Flag message as spam"
5 #set alias_file=$HOME/var/lib/mutt/aliases.dat
6 #set crypt_use_pka
7 #set locale="fr_FR.UTF-8"
8 #set new_mail_command="notify-send 'New Email' '%n new messages, %u unread.' &"
9 #set pgp_mime_signature_description="Signature digitale OpenPGP"
10 #set pgp_mime_signature_filename=msg.sig.gpg
11 #set sendmail="/usr/sbin/ssmtp -C$HOME/.mutt/ssmtp/ssmtp.cfg"
12 #set wrapmargin=3
13 #source $alias_file
14 alternative_order text/plain text/enriched text text/html
15 auto_view application/octet-stream
16 auto_view text/html
17 bind attach i previous-entry
18 bind attach k next-entry
19 bind browser i previous-entry
20 bind browser j noop
21 bind browser k next-entry
22 bind browser r check-new
23 bind browser R check-stats
24 bind generic i previous-line
25 bind generic j exit
26 bind generic k next-line
27 bind generic l select-entry
28 bind index <Esc><Tab> previous-new-then-unread
29 bind index <Tab> next-new-then-unread
30 bind index L list-reply
31 bind index N search-opposite
32 bind index \; tag-prefix-cond # apply the next function ONLY to tagged messages
33 bind index h limit
34 bind index i previous-entry
35 bind index j collapse-thread
36 bind index k next-entry
37 bind index l display-message
38 bind index r reply
39 bind index,pager M save-message
40 bind index,pager \Cn sidebar-next
41 bind index,pager \Co sidebar-open
42 bind index,pager \Cp sidebar-prev
43 bind pager < exit
44 bind pager <BackSpace> exit
45 bind pager <Esc><Tab> previous-new-then-unread
46 bind pager <Tab> next-new-then-unread
47 bind pager L list-reply
48 bind pager i previous-line
49 bind pager j exit
50 bind pager k next-line
51 bind pager l next-entry
52 bind pager r reply
53 bind pager,index V check-traditional-pgp
54 # object foreground background [regex]
55 color body cyan default [-a-z_0-9.]+@[-a-z_0-9.]+ # e-mail addresses
56 color body magenta default "(ftp|git|http|https|irc|mailto|news|rsync|ssh|svn|xmpp)://[^ >]+" # point out URL
57 color header brightblack default ^Content-Type:
58 color header brightblack default ^Date:
59 color header brightblack default ^List-ID:
60 color header magenta default ^Message-ID:
61 color header brightblack default ^Old-To:
62 color header brightblack default ^Open(PGP|pgp):
63 color header brightblack default ^Reply-To:
64 color header brightblack default ^User-Agent:
65 color header brightblack default ^X-Mailer:
66 color header brightblack default ^X-Operating-System:
67 color header brightblack default ^X-PGP-Key-FingerPrint:
68 color header brightblack default ^X-PGP-Key:
69 color header brightblack default ^X-Spam-Status:
70 color header cyan default ^(Bcc|BCC):
71 color header cyan default ^(Cc|CC):
72 color header cyan default ^From:
73 color header cyan default ^To:
74 color header red default ^Disposition-Notification-To:
75 color header red default ^Return-Receipt-To:
76 color header brightwhite yellow ^Subject:
77 color index yellow default '~F' # Flagged
78 color indicator white red
79 color normal white default
80 color quoted brightblack default
81 color search white red
82 color status white blue
83 color tree magenta default
84 macro browser q "<exit><quit>"
85 #macro browser y "\t"
86 macro compose \CP "Fgpg --clearsign\ny"
87 macro index , "<sync-mailbox><change-folder>^<enter>" # Reload current folder
88 macro index <F8> "<shell-escape>rm -rf ~/.mu/results; mu-find -o l -l ~/.mu/results " "mu-find"
89 macro index <F9> "<change-folder-readonly>~/.mu/results\n" "display mu-find results"
90 macro index q "<change-folder>?"
91 #macro index y "c?\t"
92 macro index,browser L "<enter-command>unset wait_key<enter><shell-escape>read -p 'search: ' x; echo \$x >~/.cache/mutt/terms<enter><limit>~i \"\`notmuch search --output=messages \$(cat ~/.cache/mutt/terms) | head -n 600 | perl -le '@a=<>;chomp@a;s/\^id:// for@a;$,=\"|\";print@a'\`\"<enter>" "Limit through a notmuch search"
93 macro index,browser \cL "<limit>all\n" "show all messages (undo limit)"
94 macro index,generic \CF "!echo SIGHUP gpg-agent so it forgets the passphrase.; pkill -SIGHUP gpg-agent\n" "SIGHUP gpg-agent so it forgets the passphrase"
95 macro index,pager A "<pipe-message>abook --add-email<return>" "add the sender address to abook"
96 macro index,pager u |urlview\n
97 macro index,pager,generic a "<shell-escape>abook<return>" "launch abook"
98 unmime_lookup *
99 mime_lookup application/octet-stream
100 ignore *
101 unignore From Date Subject To Cc Message-ID
102 unignore x-mailer
103 unignore x-spam-status
104 unignore x-spam-report
105 set ask_follow_up = no
106 set ask_x_comment_to = no
107 set askcc = no
108 set assumed_charset = UTF-8
109 set attribution = "Le %d, %n a écrit :"
110 set auto_tag = yes
111 set browser_abbreviate_mailboxes
112 #set browser_sticky_cursor
113 set catchup_newsgroup = no
114 set charset = UTF-8
115 set check_mbox_size # This variable should happen before any "mailboxes" directive
116 set collapse_unread = no
117 set config_charset = UTF-8
118 set crypt_replyencrypt
119 set crypt_replysign
120 set crypt_replysignencrypted
121 set crypt_use_gpgme = no
122 set crypt_verify_sig
123 set date_format = "%a %d %b %Y %Hh%M %Z"
124 set edit_headers
125 set editor = "sh -c 'vim -f -c \"set ft=mail tw=64\" -c \":0/^\$\" \"$0\"; echo -ne \"\\033kmutt\\033\\134\"; echo -ne \"\\033]0;TERM: mutt: \$PWD\\007\"' "
126 set envelope_from_address = ""
127 set folder_format = "%N%t [%3n/%3m] %f %> %s %D"
128 set followup_to
129 set followup_to_poster = ask-yes
130 set group_index_format = '%4C %M%N %5s %-45.45f %d'
131 set hdrs
132 set header_cache = "~/.cache/mutt/headers"
133 set honor_followup_to
134 set hostname = "localhost"
135 set imap_check_subscribed
136 set imap_delim_chars = "/.+"
137 set imap_idle
138 set imap_keepalive = 300
139 set imap_list_subscribed
140 set imap_passive = yes
141 set implicit_autoview
142 set include = ask-yes
143 set indent_string = "> "
144 set index_format = "%Z %-18.18L %?M?%3M >>>? %s%> %5cB %D"
145 set inews = ''
146 set mail_check = 60
147 set mail_check_stats
148 set mailcap_path = "~/.mutt/mailcap"
149 set message_cachedir = "~/.cache/mutt/bodies"
150 set metoo = no
151 set mime_forward = no
152 set mime_forward_rest
153 set mime_subject = yes
154 set net_inc = 5
155 set news_cache_dir = '~/.cache/mutt/news'
156 set newsgroups_charset = utf-8
157 set newsrc = '~/.var/mutt/newsrc.%s'
158 set nntp_authenticators = ''
159 set nntp_context = 1000
160 set nntp_listgroup = yes
161 set nntp_load_description = yes
162 set nntp_pass = ''
163 set nntp_poll = 60
164 set nntp_user = ''
165 set nomark_old # Non read messages not marked as old
166 set pager = "builtin"
167 set pager_context = 2 # Number of lines to be shown when doing next-page
168 set pager_index_lines = 9
169 set pager_stop # When looking at the end of a message dont jump to the beginning of the next one
170 set pgp_auto_decode
171 set pgp_autoinline = no
172 set pgp_check_exit
173 set pgp_clearsign_command = "gpg --batch --output - --armor --textmode --clearsign %?a?--local-user %a? <%f"
174 set pgp_decode_command = "gpg --batch --output - --use-agent --decrypt %f"
175 set pgp_decrypt_command = "gpg --batch --output - --use-agent --status-fd 2 --decrypt %f"
176 set pgp_encrypt_only_command = "pgpewrap gpg --batch --output - --use-agent --always-trust --textmode --armor --encrypt -- --recipient %r <%f"
177 set pgp_encrypt_sign_command = "pgpewrap gpg --batch --output - --use-agent --always-trust --textmode --armor %?a?--local-user %a? --sign --encrypt -- --recipient %r <%f"
178 set pgp_entry_format = "%4n %t%f %4l/0x%k %-4a %2c %u"
179 set pgp_export_command = "pgpewrap gpg --batch --export --armor -- '' %r"
180 set pgp_good_sign = "^gpg : bonne signature de"
181 set pgp_ignore_subkeys
182 set pgp_import_command = "gpg --batch --import --verbose %f"
183 set pgp_list_pubring_command = "gpg --no-verbose --batch --quiet --with-colons --list-keys %r"
184 set pgp_list_secring_command = "gpg --no-verbose --batch --quiet --with-colons --list-secret-keys %r"
185 set pgp_mime_auto
186 set pgp_replyinline
187 set pgp_self_encrypt
188 set pgp_show_unusable
189 set pgp_sign_command = "gpg --batch --output - --use-agent --armor --detach-sign --textmode %?a?--local-user %a? <%f"
190 set pgp_sort_keys = address
191 set pgp_strict_enc
192 set pgp_timeout = 10
193 set pgp_use_gpg_agent
194 set pgp_verify_command = "gpg --batch --output - --verify %s %f"
195 set pgp_verify_key_command = "gpg --batch --fingerprint --check-sigs %r"
196 set pop_checkinterval = 60
197 set pop_delete = no
198 set pop_reconnect
199 set post_moderated = ask-yes
200 set postpone_encrypt = yes
201 set query_command = "abook --mutt-query '%s'"
202 set quote_regexp = "^([ \t]*[|>:}#])+"
203 set reverse_alias
204 set reverse_name
205 set reverse_realname = no
206 set save_unsubscribed = yes
207 set send_charset = UTF-8
208 set sendmail = "sendmail -oem -oi"
209 set show_new_news = yes
210 set show_only_unread = no
211 set sidebar_delim_chars = "/.+"
212 set sidebar_folder_indent
213 set sidebar_format = "%B%?F? [%F]?%* %?N?%N/?%S"
214 set sidebar_indent_string = ".."
215 set sidebar_visible = no
216 set signature = "~/.mutt/signature"
217 set sort = threads
218 set sort_alias = alias
219 set sort_aux = reverse-last-date
220 set sort_browser = reverse-date
221 set ssl_force_tls
222 set ssl_starttls = no
223 set strict_threads # Use In-Reply-To: header to build threads
224 set timeout = 30
225 set tmpdir = "~/.cache/mutt"
226 set to_chars = " +TCFL"
227 set uncollapse_jump = yes
228 set uncollapse_new = yes
229 set use_envelope_from
230 set use_envelope_from
231 set use_from
232 set user_agent = no
233 set x_comment_to = no
234 unset allow_8bit
235 unset beep
236 unset crypt_autoencrypt
237 unset mark_old # When leaving a box don't mark new messages old
238 unset markers
239 unset meta_key
240 unset move # Do not move read mails
241 unset pgp_autosign
242 unset pgp_retainable_sigs
243 unset preconnect
244
245 account-hook . ' \
246 unset imap_user; \
247 unset imap_pass; \
248 unset tunnel \
249 '
250 # Use very high $read_inc to speed up reading hcache'd maildirs
251 folder-hook . 'set read_inc=1000'
252 # Use lower value for reading slower remote IMAP folders
253 folder-hook (^imap) 'set read_inc=100'
254 # Use even lower value for reading even slower remote POP folders
255 folder-hook (^pop) 'set read_inc=1'
256
257
258 # vim: ft=muttrc