# -*- mode: conf; -*- # --- preferences set from=spwhitton@spwhitton.name set realname="Sean Whitton" set reverse_name = yes set reverse_realname = no set envelope_from = yes set use_from = yes set folder=~/.fmail/ set spoolfile = +inbox set record = +sent set postponed = +drafts set certificate_file = ~/.mutt/certificates set move = no set delete = ask-yes #unset edit_hdrs set edit_hdrs set include set reply_to set abort_nosubject = no alternates '(spwhitton@spwhitton.name)|(spwhitton@email.arizona.edu)' set hdr_format="%4C %Z %{%m/%d} %-15.15F (%4c) %s" unset help set mail_check=20 set timeout=15 set pager_index_lines=8 unset arrow_cursor set fast_reply set pager_context = 1 set reply_to = ask-yes set recall = ask-yes #set pager_stop set tmpdir="~/local/mutt" set resolve = yes set noconfirmappend set abort_unmodified = yes set mark_old = no # better with mbsync set editor = "emacsclient -t -a \"zile -f auto-fill-mode +8\"" #set editor="switch-to-emacsclient" set tilde set smart_wrap set wrapmargin=10 unset markers set wait_key=no set print_command="muttprint" # --- CatMail hooks # reply-hook . 'set from="Sean Whitton " use_from' # reply-hook "~f arizona.edu" 'set from="Sean Whitton " use_from' # reply-hook "~t spwhitton@email.arizona.edu" 'set from="Sean Whitton " use_from' # send2-hook . 'set from="Sean Whitton " use_from' # send2-hook "~t arizona.edu" 'set from="Sean Whitton " use_from' # See on # avoiding infinite loops with send2-hooks # from hooks: use CatMail address for members of cmrecps group group -group cmrecps -rx edu$ -rx ac.uk$ send2-hook "!~f spwhitton@email.arizona.edu ^%C cmrecps" 'push Sean\ Whitton\ ' # PGP hooks: encrypt to members of the pgp_full group, do nothing for # members of pgp_none, sign to everyone else group -group pgp_none -rx arizona.edu$ send-hook "." "set crypt_autosign=no" send-hook "." "set crypt_autoencrypt=no" send-hook "!^%Cpgp_none" "set crypt_autosign=yes" send-hook "^%Cpgp_full !^%Cpgp_none" "set crypt_autoencrypt=yes" send-hook '!~g !~G ^%C pgp_full !^%C pgp_none' 'push b' send-hook '!~g !^%C pgp_full !^%C pgp_none' 'push s' send-hook '(~G|~g) ^%C pgp_none' 'push c' # --- sorting set sort = threads set sort_browser = date set sort_aux = last-date-received # --- GPG settings set pgp_autosign = yes set pgp_sign_as = 0x0F56D0553B6D411B set pgp_replysign = yes set pgp_replysignencrypted = yes set pgp_replyencrypt = yes set pgp_timeout = 120 #set fcc_clear = yes set fcc_clear = no set pgp_use_gpg_agent = yes #set pgp_strict_enc # maybe needed? set pgp_decode_command="gpg --use-agent --no-verbose --quiet --batch --output - %f" set pgp_verify_command="gpg --use-agent --no-verbose --quiet --batch --output - --verify %s %f" set pgp_decrypt_command="gpg --use-agent --no-verbose --quiet --batch --output - %f" set pgp_sign_command="gpg --use-agent --no-verbose --batch --quiet --output - --armor --detach-sign --textmode %?a?-u %a? %f" set pgp_clearsign_command="gpg --use-agent --no-verbose --batch --quiet --output - --armor --textmode --clearsign %?a?-u %a? %f" set pgp_encrypt_only_command="/usr/lib/mutt/pgpewrap gpg --use-agent --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust --encrypt-to 0x0F56D0553B6D411B -- -r %r -- %f" set pgp_encrypt_sign_command="/usr/lib/mutt/pgpewrap gpg --use-agent --batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust --encrypt-to 0x0F56D0553B6D411B -- -r %r -- %f" set pgp_import_command="gpg --use-agent --no-verbose --import %f" set pgp_export_command="gpg --use-agent --no-verbose --export --armor %r" set pgp_verify_key_command="gpg --use-agent --verbose --batch --fingerprint --check-sigs %r" set pgp_list_pubring_command="gpg --use-agent --no-verbose --batch --quiet --with-colons --list-keys %r" set pgp_list_secring_command="gpg --use-agent --no-verbose --batch --quiet --with-colons --list-secret-keys %r" set pgp_good_sign="^gpg: Good signature from" # --- message headers hdr_order From: Date: User-Agent: X-Mailer: x-oxford-username: Message-Id: To: Cc: Reply-To: Subject: ignore * unignore From: Date: User-Agent: X-Mailer: x-oxford-username: Message-Id: To: Cc: Reply-To: Subject: # --- mailboxes mailboxes +inbox +sent +drafts +debian +notes +spam +feeds # --- message part viewing auto_view text/html alternative_order text/html text/plain text/enriched text set mailcap_path = ~/.mutt/mailcap # --- addresses set alias_file=~/.mutt/aliases # this is the main alias file source ~/.mutt/aliases source ~/.mutt/groups # keep shortcut groups in a separate # file for simplicity # --- key bindings # filtering function keys, some from Jonathan macro index "l((~N|~O)!~D)" "blah" macro index "lall\n" "blahblah" macro index,pager "c=inbox" "switch to inbox" macro index,pager "c=sent" "switch to sent" # macro index,pager "c=archive" "switch to archive" bind index,pager next-unread-mailbox # on startup, don't show new messages: distractions # works when I type mutt into a terminal, but not if I use xmonad launcher shortcut... push "!~N!~O!~D" # quickly save attachments, woo macro attach S "~/tmp/y" # extract URLS--config from http://www.memoryhole.net/~kyle/extract_url/ macro index,pager ,b " set my_pdsave=\$pipe_decode\ unset pipe_decode\ extract_url.pl\ set pipe_decode=\$my_pdsave" "get URLs" macro index,pager ,B " set my_pdsave=\$pipe_decode\ set pipe_decode\ extract_url.pl\ set pipe_decode=\$my_pdsave" "decrypt message, then get URLs" message-hook . 'macro index,pager \cb ,b "URL viewer"' message-hook ~G 'macro index,pager \cb ,B "URL viewer"' # send Message-Id over to Emacs so that I can link to messages # macro index,pager "|~/bin/org-mairix-el-store-link\n" macro index "Fk|~/bin/capture-mail\nj" macro pager "qFk|~/bin/capture-mail\nj" # open RSS links in browser (fails because for some reason mutt can't bind macro index,pager "grep '\^http' | sed 's/\^/-new-tab /' | xargs firefox" "open all URLs at beginning of lines in message in browser tabs" # open rss2email source link in browser # macro pager "grep \"\^URL: http\" | xargs firefox -new-tab" "open rss2email source link" macro pager "egrep \"X-RSS-URL:\" | cut -d' ' -f2- | xargs firefox -new-tab" "open rss2email source link" # train spam filter macro index,pager "+spam" "mark as spam" # easier scrolling bind pager ] previous-page bind pager [ next-page # Emacs-style bindings bind index n next-undeleted bind pager n next-undeleted bind index p previous-undeleted bind pager p previous-undeleted bind index ! flag-message bind pager ! flag-message bind pager t display-toggle-weed # printing bind index,pager \cP print-message # safety, since mbsync trash functionality doesn't work with FastMail bind generic,index,pager d noop bind generic,index,pager D noop # ... but let me delete notes made on tablet computer folder-hook . bind generic,index,pager d noop folder-hook "notes" bind index,pager d delete-message # ... and delete mistaken spam trains folder-hook "spam" bind index,pager d delete-message # --- colours # make flagged & new messages more obvious color index brightred black "~F" color index brightwhite black "~N|~O"