[ Content | View menu ]


Written on May 4, 2004

reset all

source ~/Mail/.alias
set alias_file =~/Mail/.alias

source ~/Mail/.common

# ~/Mail/.common contains:
# This is the stuff common to all of my .muttrc files

set reverse_name
set nouse_domain
set reply_to
set envelope_from
set move="yes"
set help
set read_inc = 10
set mail_check = 600
set menu_scroll = yes
set help = yes
set tmpdir = /tmp
set ispell = "/usr/bin/aspell -c"
set wrap_search = yes
set strict_threads = no
set sort = threads
set sort_aux = date
set mark_old = no
set pager_context = 1
set pager_index_lines = 10
set editor = "vim -c 'set tw=72'"
set indent_string = >
set sort_browser = reverse-date
set record = ~/Mail/sent
set mbox = ~/Mail/inbox
set mbox_type = mbox
set folder = ~/Mail
set autoedit = yes
set reverse_alias = yes
set implicit_autoview = yes
set score = no
mailboxes ~/Mail/inbox ~/Mail/tortech ~/Mail/mutt ~/Mail/tlug ~/Mail/Holly ~/Mail/mis-trivia ~/Mail/spam ~/Mail/tall

# Colours
color header brightyellow black Subject:
color header brightcyan black .
color quoted green black
color signature brightblue black
color attachment yellow black
color tree red black
color indicator black cyan
color status brightyellow blue
color tilde blue black
color normal brightwhite black

# Save-Hooks, Folder-Hooks
fcc-save-hook hollyemailaddressescaped +Holly

fcc-save-hook tall +tall
folder-hook tall+ "my_hdr From: William O'Higgins <emailaddress>"
folder-hook tall+ "my_hdr Reply-To: William O'Higgins <emailaddress>"
folder-hook tall+ 'set signature=~/Mail/.nerd.sig'

fcc-save-hook mutt +mutt
folder-hook mutt+ "my_hdr From: William O'Higgins <emailaddress>"
folder-hook mutt+ "my_hdr Reply-To: William O'Higgins <emailaddress>"
folder-hook mutt+ 'set signature=~/Mail/.nerd.sig'

fcc-save-hook tlug +tlug
folder-hook tlug+ "my_hdr From: William O'Higgins <emailaddress>"
folder-hook tlug+ "my_hdr Reply-To: William O'Higgins <emailaddress>"
folder-hook tlug+ 'set signature=~/Mail/.blandsig'

# Save attachments in a common place
macro attach s <save -entry><bol>/home/willyyam/Mail/attachments/<eol><enter>

# Handy Macro
macro compose y "<ispell><send -message>" 'Spellcheck and send'"

# If I don't remember (common) or am in the wrong email account (also
# common) I can get the right headers, signature, POP info, etc
macro   index   <f5> ":source ~/Mail/.uoft.muttrc" "U of T"
macro   index   <f6> ":source ~/Mail/.nerd.muttrc" "Nerd"
macro   index   <f7> ":source ~/Mail/.pilcrow.muttrc" "Pilcrow"
macro   index   <f8> ":source ~/Mail/.muttrc" "Woolgathering"

# Keep the highlighted line in the centre of my viewing pane
macro index <up> "<previous -undeleted><current -middle>"
macro index <down> "<next -undeleted><current -middle>"

# Save two keystrokes
macro index c "<change -folder>?"
macro pager c "<change -folder>?"
macro browser c "<tab>"

# I teach spamassassin what spam is based on what is in the spam folder,
# and I want to put stuff in there quickish
macro index S "s=spam<enter><enter>"
macro pager S "s=spam<enter><enter>"

# If I get through writing an email, but it is using the wrong email
# account, I can sort it out
macro compose <f5> ":set editor='header_edit_uoft'n<edit -headers>:set editor='vim'<enter>"
macro compose <f6> ":set editor='header_edit_nerd'n<edit -headers>:set editor='vim'<enter>"
macro compose <f7> ":set editor='header_edit_pilcrow'n<edit -headers>:set editor='vim'<enter>"
macro compose <f8> ":set editor='header_edit_woolgathering'n<edit -headers>:set editor='vim'<enter>"

# Tidy up the headers, just showing those I care for - if I want more I
# can just hit "h"
ignore *
unignore x-spam-status
unignore from:
unignore to:
unignore subject:
unignore date:

# End of ~/Mail/.common

set realname = "William O'Higgins"
set from = myemailaddress
set signature = ~/Mail/.uoft.sig
set pop_user = poplogin
set pop_pass = poppassword
set pop_delete = yes
set pop_host = pophost

# GnuPG Stuff

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="pgpewrap gpg --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust --encrypt-to 0xC9C40C31 -- -r %r -- %f"
set pgp_encrypt_sign_command="pgpewrap gpg --passphrase-fd 0 --batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust --encrypt-to 0xC9C40C31 -- -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_sign_as=ECFE293F
set pgp_replyencrypt=yes
set pgp_timeout=36000
set pgp_good_sign="^gpg: Good signature from"

# Set hooks on the inbox
folder-hook inbox+ "my_hdr From: William O'Higgins <emailaddress>"
folder-hook inbox+ "my_hdr Reply-To: William O'Higgins <emailaddress>"
folder-hook inbox+ 'set signature=~/Mail/.uoft.sig'

Filed in: config.

Comments closed