Added mutt configuration

This commit is contained in:
Tom Willemsen 2011-01-11 13:50:07 +01:00
parent 131edb23fe
commit 03c32e108e
12 changed files with 230 additions and 0 deletions

View file

@ -22,6 +22,9 @@ linkmy emacs .emacs
linkmy emacs.d .emacs.d linkmy emacs.d .emacs.d
# IRSSI # IRSSI
linkmy irssi .irssi linkmy irssi .irssi
# MUTT
linkmy muttrc .muttrc
linkmy mutt .mutt
# NCMPCPP # NCMPCPP
linkmy ncmpcpp .ncmpcpp linkmy ncmpcpp .ncmpcpp
# NEWSBEUTER # NEWSBEUTER

2
mutt/.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
cache
temp

0
mutt/alias Normal file
View file

16
mutt/arch.muttrc Normal file
View file

@ -0,0 +1,16 @@
###
# archlinux.us specific options
###
color status green default
set from = "tom.willemsen@gmail.com"
set smtp_url = "smtp://tom.willemsen@archlinux.us@smtp.gmail.com:587/"
set mbox = "+arch/INBOX"
unset record
set postponed = "+arch/drafts"
macro index E "<change-folder>+arch/archive<enter><limit>~B " "search everything"
macro index D "<save-message>+arch/trash<enter>" "move message to the trash"
macro index S "<save-message>+arch/spam<enter>" "mark message as spam"

0
mutt/certificates Normal file
View file

63
mutt/colors.muttrc Normal file
View file

@ -0,0 +1,63 @@
###
# mutt colors file
###
# set default
color normal white default
# main colors
color status green default
color indicator brightwhite default
color tree blue default
color error brightred default
color message brightyellow default
# uncolor certain messages
uncolor index "~P"
uncolor index "~N ~u"
uncolor index "~N !~u"
uncolor index "~T"
uncolor index "~D"
# and recolor them appropriately
color index brightblack default "~P"
color index brightcyan default "~N ~u" # new ML mail
color index brightyellow default "~N !~u" # new non-ML mail
color index brightgreen default "~T"
color index brightred default "~D"
# set up the headers
color header brightyellow default "^from:"
color header yellow default "^to:"
color header yellow default "^cc:"
color header blue default "^date:"
color header brightblue default "^subject:"
# message bodies
color attachment brightblack default
color search red brightblack
color signature cyan default
color tilde blue default
# urls
color body brightblue default "(^|<| )mailto:[^ ]+@[^ ]( |>|$)"
color body brightblue default "(^|<| )(http|https|ftp|file|telnet|news|finger)://[^ ]+( |>|$)"
# smileys
color body brightmagenta default "(^| )+(|[<>|])[8;:](|[^ ])[)(/|DOPS]( |$)+"
color body brightmagenta default "(^| )+[)(/|DOPS](|[^ ])[8;:](|[<>|])( |$)+"
# *bold*, _underline_ and /italic/
color body brightcyan default "(^| )\\*[^*]+\\*( |$)"
color body brightcyan default "(^| )_[^_]+_( |$)"
color body brightcyan default "(^| )/[^/]+/( |$)"
# quote blocks
color quoted magenta default
color quoted1 cyan default
color quoted2 green default
color quoted3 magenta default
color quoted4 cyan default
color quoted5 green default
color quoted6 magenta default
color quoted7 cyan default

14
mutt/gmail.muttrc Normal file
View file

@ -0,0 +1,14 @@
###
# gmail specific option
color status blue default
set from = "ryuslash@gmail.com"
set smtp_url = "smtp://ryuslash@gmail.com@smtp.gmail.com:587/"
set mbox = "+gmail/INBOX"
unset record
set postponed = "+gmail/drafts"
macro index E "<change-folder>+gmail/archive<enter><limit>~B " "search everything"
macro index D "<save-message>+gmail/trash<enter>" "move message to the trash"
macro index S "<save-message>+gmail/spam<enter>" "mark message as spam"

14
mutt/iactor.muttrc Normal file
View file

@ -0,0 +1,14 @@
###
# iactor specific options
###
color status red default
set from = "tom@iactor.nl"
set smtp_url = "mail.iactor.nl:2525"
set mbox = "+iactor/INBOX"
set record = "+iactor/Sent"
set postponed = "+iactor/Drafts"
macro index E "<change-folder>+iactor/INBOX<enter><limit>~B " "search everything"
macro index D "<save-message>+iactor/Trash<enter>" "move message to the trash"

0
mutt/mailcap Normal file
View file

20
mutt/sidebar.muttrc Normal file
View file

@ -0,0 +1,20 @@
###
# options specific to mutt's sidebar patch
###
# settings
set sidebar_delim = '|'
set sidebar_visible = no
set sidebar_width = 20
# colors
color sidebar_new brightyellow default
# bindings
bind index,pager \CJ sidebar-next
bind index,pager \CK sidebar-prev
bind index,pager \CL sidebar-open
# macros
macro index B '<enter-command>toggle sidebar_visible<enter><refresh>'
macro pager B '<enter-command>toggle sidebar_visible<enter><redraw-screen>'

0
mutt/sig Normal file
View file

98
muttrc Normal file
View file

@ -0,0 +1,98 @@
###
# ~/.muttrc
###
# directories and commands
set alias_file = ~/.mutt/alias #alias file
set header_cache = ~/.mutt/cache/headers # where to store headers
set message_cachedir = ~/.mutt/cache/bodies # where to store bodies
set certificate_file = ~/.mutt/certificates # where to store certs
set mailcap_path = ~/.mutt/mailcap # entries for filetypes
set tmpdir = ~/.mutt/temp # where to keep temp files
set editor = "/usr/bin/vim +/^$" # use vim and skip to first blank
# line
# main options
set mbox_type = Maildir # mailbox type
set folder = ~/Mail # mailbox location
set spoolfile = "+arch/INBOX" # arch is the default inbox
set timeout = 3 # idle time before scanning
set mail_check = 0 # minimum time between scans
set sort_alias = alias # sort alias file by alias
set reverse_alias # show names from alias file in index
unset move # gmail does that
set delete # don't ask, just do
unset confirmappend # don't ask, just do!
set quit # don't ask, just do!!
unset mark_old # read/new is good enough for me
set beep_new # bell on new mails
set pipe_decode # strip headers and eval mimes when piping
set thorough_search # strip headers and eval mimes before searching
# index options
set sort = threads # like gmail
set sort_aux = last-date-received # not like gmail
set uncollapse_jump # don't collapse on an unread message
#set sort_re # thread based on regex
# pager options
set pager_index_lines = 10 # number of index lines to
# show
set pager_context = 5 # number of context lines
# to show
set pager_stop # don't go to next message
# automatically
set menu_scroll # scroll in menus
set smart_wrap # don't split words
set tilde # show tildes like in vim
unset markers # no ugly plus signs
auto_view text/html # view html automatically
alternative_order text/plain text/enriched text/html # save html for last
set quote_regexp = "^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+"
# formats
#set date_format = "%m/%d/%y at %I:%M%P"
set index_format = "%3C [%Z] %D %-15.15F %s"
set alias_format = "%4n %t %-20a %r"
# composing mail
set realname = "Tom Willemsen" # who am I?
set envelope_from # which from?
set sig_dashes # dashes before my sig... sweet
set edit_headers # show headers when composing
set fast_reply # skip to compose when replying
set askcc # ask for CC:
set fcc_attach # save attachments with the body
unset mime_forward # forward attachments as part fo body
set forward_format = "Fwd: %s" # format for subject when forwarding
set forward_decode # decode when forwarding
set attribution = "On %d, %n wrote:" # set the attribution
set reply_to # reply to Reply to: field
set reverse_name # reply as whomever it was to
set include # include message in replies
set forward_quote # include message inforwards
# headers to show
ignore * # ignore all headers
unignore from: to: cc: date: subject: # show only these
hdr_order from: to: cc: date: subject: # and in this order
# boxes
mailboxes +arch/INBOX #+arch/archive +arch/sent +arch/drafts +arch/spam +arch/trash
mailboxes +gmail/INBOX #+gmail/archive +gmail/sent +gmail/drafts +gmail/spam +gmail/trash
mailboxes +iactor/INBOX #+iactor/INBOX.Admin +iactor/INBOX.Important +iactor/INBOX.Intern +iactor/INBOX.Taken +iactor/Sent +iactor/Drafts +iactor/Trash
# always sourced
source $alias_file # required for functionality
source ~/.mutt/colors.muttrc # source colors file
source ~/.mutt/sidebar.muttrc # any muttng options are here
source ~/.mutt/arch.muttrc # source arch as default
# account specific sources
folder-hook arch/* source ~/.mutt/arch.muttrc
folder-hook gmail/* source ~/.mutt/gmail.muttrc
folder-hook iactor/* source ~/.mutt/iactor.muttrc
# macros
macro index I "<change-folder>!<enter>" "go to Inbox"
macro index Z "<shell-escape>/usr/bin/offlineimap -q -o<enter>" "sync IMAP"