281 lines
10 KiB
Bash
281 lines
10 KiB
Bash
#!mutt
|
|
# -*-sh-*-
|
|
|
|
# set header_cache="~/.mutt_hcache"
|
|
|
|
set from="paul@blacksun.org.uk"
|
|
set realname="Paul Walker"
|
|
|
|
# set folder = "imaps://imap.fastmail.com/"
|
|
# set spoolfile="imaps://imap.fastmail.com/INBOX"
|
|
set folder="~/Mail/Fastmail/"
|
|
set spoolfile=+INBOX
|
|
set record="+Sent Items"
|
|
set postponed="+Drafts"
|
|
set trash="+Trash"
|
|
|
|
set imap_user="arafel@fastmail.fm"
|
|
set imap_pass=`pass imap.fastmail.com`
|
|
set smtp_url=smtps://$imap_user@smtp.fastmail.com
|
|
set smtp_pass=`pass smtp.fastmail.com`
|
|
set imap_check_subscribed
|
|
# keep imap connection alive by polling intermittently (time in seconds)
|
|
set imap_keepalive = 900
|
|
|
|
# store message headers locally to speed things up
|
|
set header_cache = ~/.mutt/cache/headers
|
|
|
|
# how about store messages too
|
|
set message_cachedir =~/.mutt/cache/bodies
|
|
|
|
# Mailcap (autoexecute program declarations)
|
|
set mailcap_path = ~/.mailcap
|
|
|
|
set index_format="%4C %Z %{%b %d} %-15.15F (%4c) %s"
|
|
set followup_to=no
|
|
|
|
set check_mbox_size=yes
|
|
|
|
#set ssl_force_tls
|
|
set ssl_starttls=yes
|
|
alternative_order text/plain text/html text
|
|
auto_view text/html
|
|
mime_lookup application/octet-stream
|
|
|
|
mailboxes !
|
|
mailboxes ="Claire" ="Junk Mail"
|
|
mailboxes ="Filing cabinet.80-20" ="Filing cabinet.eBay" ="Filing cabinet.Edge" ="Filing cabinet.Facebook"
|
|
mailboxes ="Filing cabinet.Hargreaves Lansdown" ="Filing cabinet.Kickstarter" ="Filing cabinet.Medium"
|
|
mailboxes ="Filing cabinet.MFY"
|
|
mailboxes ="Filing cabinet.Orders" ="Filing cabinet.School.Abbeywood" ="Filing cabinet.YouInvest"
|
|
mailboxes ="hdevore.hdevore - Archive" ="hdevore.hdevore - Inbox" ="hdevore.hdevore - Sent"
|
|
mailboxes ="Mailing lists.culture" ="Mailing lists.INN" ="Mailing lists.jmap" ="Mailing lists.signs-of-god"
|
|
mailboxes ="Mailing lists.slrn-user"
|
|
mailboxes ="Notes"
|
|
mailboxes ="PK.PK - Archive" ="PK.PK - Inbox" ="PK.PK - Sent"
|
|
mailboxes ="Projects.ServiceSmart" ="Projects.ServiceSmart.ServiceSmart archive"
|
|
mailboxes ="Pending/Read" ="Pending/Process" ="Pending/Mostly noise" ="Pending/Temporary"
|
|
mailboxes ="To read"
|
|
|
|
set pgp_replyencrypt
|
|
set pgp_replysign
|
|
set pgp_replysignencrypted
|
|
|
|
alternates "(usenet|paul|ebay)@blacksun.org.uk|arafel@fastmail.fm|paul@solarwinter.net""
|
|
|
|
# default hooks
|
|
send-hook . set signature=~/.signature_plain
|
|
send-hook . my_hdr From: Paul Walker <paul@blacksun.org.uk>
|
|
folder-hook . set sort=threads
|
|
folder-hook . set strict_threads="yes"
|
|
|
|
# send-hooks
|
|
|
|
# These expressions should hopefully capture just the automated addresses used
|
|
# to add stuff, so if I email someone at those domains it'll still signature
|
|
# me.
|
|
send-hook post.*@pinboard\.in unset signature
|
|
send-hook .*@todoist\.net "unset signature; unset record"
|
|
send-hook slrn-user@lists\.sourceforge\.net "my_hdr From: Paul Walker <slrn@blacksun.org.uk>"
|
|
|
|
lists busstop@culturelist\.org
|
|
|
|
|
|
lists busstop@culturelist\.org
|
|
|
|
# folder-hooks
|
|
folder-hook Sent set sort=date
|
|
|
|
## Save hooks
|
|
save-hook "~f bananafrog@fastmail.fm" ="Claire"
|
|
save-hook "~f .*@kickstarter\.com" ="Filing cabinet.Kickstarter"
|
|
save-hook "~f .*@manflowyoga\.com" ="Filing cabinet.MFY"
|
|
save-hook "~f .*@jonnybradley\.com" ="Filing cabinet.FBA"
|
|
save-hook "~f .*@medium\.com" ="Filing cabinet.Medium"
|
|
save-hook "~f .*@edgechurch\.co" ="Filing cabinet.Edge"
|
|
save-hook "~f .*@abbeywoodschool\.com" ="Filing cabinet.School.Abbeywood"
|
|
save-hook "~f .*@olympustrust" ="Filing cabinet.School.Abbeywood"
|
|
save-hook "~f .*@classcharts\.com" ="Filing cabinet.School.Abbeywood"
|
|
save-hook "~f 8034000@sims-communications\.co\.uk" ="Filing cabinet.School.Abbeywood"
|
|
save-hook "~f .*@ccsadoption\.org" ="Filing cabinet.CCS"
|
|
|
|
save-hook "~s .*order.*" ="Filing cabinet.Orders"
|
|
save-hook "~f .*@paypal\.com" ="Filing cabinet.Orders"
|
|
save-hook "~f .*@paypal\.co\.uk" ="Filing cabinet.Orders"
|
|
save-hook "~s Your.invoice.from.Apple" ="Filing cabinet.Orders"
|
|
|
|
save-hook "~f .*@.*ajbell\.co\.uk" ="Filing cabinet.YouInvest"
|
|
save-hook "~f .*@.*youinvest\.co\.uk" ="Filing cabinet.YouInvest"
|
|
save-hook "~f .*@.*h-l\.co\.uk" ="Filing cabinet.Hargreaves Lansdown"
|
|
|
|
save-hook "~h List-Id:.*ez\.substack\.com" ="Mailing lists.Ed Zitron"
|
|
|
|
save-hook "~f damien@moneytothemasses\.com" ="Filing cabinet.80-20"
|
|
|
|
save-hook "~t .*@servicesmart\.app" ="Projects.ServiceSmart.ServiceSmart archive"
|
|
|
|
# Catch-all
|
|
save-hook "~f ." ="Archive"
|
|
|
|
set nomove
|
|
set noconfirmappend
|
|
|
|
set abort_unmodified=yes # automatically abort replies if I don't
|
|
# change the message
|
|
set alias_file=~/.mutt/aliases_personal # where I keep my aliases
|
|
set allow_8bit # never do Q-P encoding on legal 8-bit chars
|
|
#set arrow_cursor # use -> instead of hiliting the whole line
|
|
#set askbcc
|
|
#set askcc
|
|
set attribution="On %d, %n wrote:\n"
|
|
|
|
#set autoedit # go to the editor right away when composing
|
|
|
|
set auto_tag # always operate on tagged messages
|
|
#set charset="iso-8859-1" # character set for your terminal
|
|
set copy=yes # always save a copy of outgoing messages
|
|
set delete=ask-yes # purge deleted messages without asking
|
|
set edit_hdrs # let me edit the message header when composing
|
|
#set editor="joe +8" # editor to use when composing messages
|
|
#set editor="emacs -nw" # editor to use when composing messages
|
|
#set editor=builtin
|
|
#set editor="~/.edit.sh"
|
|
set editor="vim +9"
|
|
set fcc_attach=no # Include attachments in copies of sent messages?
|
|
#set force_name # save outgoing by recipient, create if mailbox doesn't exist
|
|
#set forw_format="[%a: %s]" # subject to use when forwarding messages
|
|
|
|
# format of lines in the message index
|
|
#set hdr_format="%4C %Z %02m/%02N %-15.15L (%4l) %s"
|
|
|
|
#set header # include message header when replying
|
|
set help # show the help lines
|
|
#set history=20 # number of lines of history to remember
|
|
#set nohold # move read message to ``mbox''
|
|
#set hostname="cs.hmc.edu" # my DNS domain
|
|
#set in_reply_to="%i; from %f on %d"
|
|
set include=yes # always include the message in replies
|
|
set indent_str="> "
|
|
#set mailcap_path="~/.mailcap:/usr/local/share/mailcap"
|
|
set nomark_old # i don't care about whether a message is old
|
|
set markers=no
|
|
# set mbox=mail/personal # where to store read messages
|
|
unset metoo # don't remove my address when replying
|
|
set mime_fwd=ask-yes # use message/rfc822 type to forward messages
|
|
set move=no # don't ask about moving messages, just do it
|
|
#set pager=less # some people prefer an external pager
|
|
#set pager_context=3 # no. of lines of context to give when scrolling
|
|
#set pager_format="-%S- %-20.20f %s" # format of the pager status bar
|
|
#set pager_stop # don't move to the next message on next-page
|
|
#set point_new # jump to the first new message on startup
|
|
set print=ask-yes # ask me if I really want to print messages
|
|
set print_cmd='lpr ' # how to print things (I like to save trees)
|
|
set noprompt_after # ask me for a command after the external pager exits
|
|
set query_command="abook --mutt-query '%s'"
|
|
#set quote_regexp="^ *[a-zA-Z]*[>:#}]" # how to catch quoted text
|
|
set read_inc=25 # show progress when reading a mailbox
|
|
# set recall # when there are postponed messages, ask me to resume
|
|
set reply_to=ask-yes # ask me if I want to use the given reply-to address
|
|
set resolve # move to the next message when an action is performed
|
|
#set reverse_alias # attempt to look up my names for people
|
|
set reverse_name
|
|
set nosave_empty # remove files when no messages are left
|
|
#set save_name # save outgoing messages by recipient, if the
|
|
# mailbox already exists
|
|
set sendmail="/usr/sbin/sendmail"
|
|
set signature="~/.signature_plain" # file which contains my signature
|
|
|
|
set shell="/bin/bash" # program to use for shell escapes
|
|
#set status_on_top # some people prefer the status bar on top
|
|
#set strict_threads # don't thread by subject
|
|
#set tilde # use virtual lines to pad blank lines in the pager
|
|
set timeout=3 # how long to wait before autochecking for new mail
|
|
set pop_checkinterval=600
|
|
set tmpdir=/tmp # where to store temp files
|
|
#set to_chars=" +TCF"
|
|
#set url_regexp="((ftp|http|https)://|mailto:)[^ ]*[^., \n\t>\)]"
|
|
#set use_mailcap=yes # always use a mailcap entry when found
|
|
#set verify_sig=yes # don't automatically verify message signatures
|
|
set visual=joe # editor invoked by ~v in the builtin editor
|
|
#set web_browser=lynx # program to use when viewing URLs
|
|
set write_inc=25 # show progress while writing mailboxes
|
|
set beep
|
|
set fast_reply
|
|
set write_bcc=no
|
|
set pgp_auto_decode=yes
|
|
|
|
#
|
|
# I subscribe to a lot of mailing lists, so this is _very_ useful. This
|
|
# groups messages on the same subject to make it easier to follow a
|
|
# discussion. Mutt will draw a nice tree showing how the discussion flows.
|
|
#
|
|
#sort threads
|
|
|
|
#
|
|
# Header fields I don't normally want to see
|
|
#
|
|
ignore * # this means "ignore all lines by default"
|
|
|
|
# I do want to see these fields, though!
|
|
unignore from: subject to cc date x-mailer x-url user-agent
|
|
|
|
#
|
|
# Color definitions
|
|
#
|
|
color hdrdefault brightblue black
|
|
color quoted white black
|
|
color quoted magenta black
|
|
color signature brightred black
|
|
color indicator brightyellow red
|
|
color error brightred black
|
|
color status brightyellow blue
|
|
color tree brightmagenta black
|
|
color tilde brightmagenta black
|
|
color message brightcyan black
|
|
color normal white black
|
|
color attachment yellow black
|
|
color search black green
|
|
color header brightcyan black ^(From|Subject|To|Cc|Date):
|
|
color body brightyellow black "(ftp|http)://[^ \)]+"
|
|
color body brightcyan black [-a-z_0-9.]+@[-a-z_0-9.]+
|
|
color signature red black
|
|
|
|
mono header underline ^(From|Subject):
|
|
mono quoted bold
|
|
|
|
#
|
|
# Key bindings
|
|
#
|
|
bind index { top-page
|
|
bind index } bottom-page
|
|
|
|
|
|
bind pager G bottom
|
|
|
|
#
|
|
# Keyboard macros
|
|
#
|
|
#macro index \# ':this is a really long macro string that might not work everywhere'
|
|
|
|
#
|
|
# User Defined Headers
|
|
#
|
|
#my_hdr From: Paul Walker <paul@blacksun.org.uk>
|
|
#
|
|
# I use Mutt on several different machines, so I put local config commands
|
|
# in a separate file so I can have the rest of the settings the same on all
|
|
# machines.
|
|
#
|
|
source ~/.mutt/aliases_personal
|
|
source ~/.mutt/keybind
|
|
source ~/.mutt/gpg.rc
|
|
source ~/.mutt/dracula.muttrc
|
|
|
|
macro index SL ":source ~/.mutt/solarized-light-16.muttrc\n"
|
|
macro index SD ":source ~/.mutt/solarized-dark.muttrc\n"
|
|
macro index D ":source ~/.mutt/dracula.muttrc\n"
|
|
|
|
send-hook . "unset pgp_autoencrypt;unset pgp_autosign"
|
|
|
|
set smtp_authenticators="login"
|