dotfiles

dot files in ~
git clone git://git.unixkoans.com/dotfiles.git
Log | Files | Refs

commit 18d84a8d654600b803a420cd0fd15120a8bee8f1
parent 5f561f3ea2dfe8ff62950c8603bb1bc926febf36
Author: Xiaodong Xu <xxdlhy@gmail.com>
Date:   Sat May 19 21:36:54 +0800

Add mutt configuration

Diffstat:
.mutt/colors/darkcourses | 82+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
.mutt/colors/miromiro | 73+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
.muttrc | 53+++++++++++++++++++++++++++++++++++++++++++++++++++++
dotman | 6++++--
4 files changed, 212 insertions(+), 2 deletions(-)
diff --git a/.mutt/colors/darkcourses b/.mutt/colors/darkcourses @@ -0,0 +1,82 @@ +# vim: filetype=muttrc + +# set default + color normal white default + +# main colors + color tree blue default + color error brightred default + color message brightgreen default + color status white brightblack + color indicator black yellow + +# color all ML mails + color index blue default "~u" + +# uncolor certain messages + uncolor index "~E" + uncolor index "~P" + uncolor index "~C @.com" + uncolor index "~N ~u" + uncolor index "~N !~u" + uncolor index "~T" + uncolor index "~D" + +# and recolor them appropriately + color index brightred default "~E" + color index brightyellow default "~P" + color index green default "~C @.com" + color index red default "~N ~u" # new ML mail + color index brightred default "~N !~u" # new non-ML mail + color index brightgreen default "~T" + color index white red "~D" + +# set up the headers + color header brightmagenta default "^from:" + color header green default "^to:" + color header yellow default "^cc:" + color header blue default "^date:" + color header cyan default "^subject:" + +# message bodies + color attachment brightblack default + color search red brightblack + color signature cyan default + color tilde brightblack default + color hdrdefault yellow default + color bold brightyellow default + +# urls + color body brightblue default "(^|<| )mailto:[^ ]+@[^ ]( |>|$)" + color body brightblue default "(^|<| )(http|https|ftp|file|telnet|news|finger)://[^ ]+( |>|$)" +# urls regex + color body brightblue default "([a-z][a-z0-9+-]*://(((([a-z0-9_.!~*'();:&=+$,-]|%[0-9a-f][0-9a-f])*@)?((([a-z0-9]([a-z0-9-]*[a-z0-9])?)\\.)*([a-z]([a-z0-9-]*[a-z0-9])?)\\.?|[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+)(:[0-9]+)?)|([a-z0-9_.!~*'()$,;:@&=+-]|%[0-9a-f][0-9a-f])+)(/([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*(;([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*)*(/([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*(;([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*)*)*)?(\\?([a-z0-9_.!~*'();/?:@&=+$,-]|%[0-9a-f][0-9a-f])*)?(#([a-z0-9_.!~*'();/?:@&=+$,-]|%[0-9a-f][0-9a-f])*)?|(www|ftp)\\.(([a-z0-9]([a-z0-9-]*[a-z0-9])?)\\.)*([a-z]([a-z0-9-]*[a-z0-9])?)\\.?(:[0-9]+)?(/([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*(;([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*)*(/([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*(;([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*)*)*)?(\\?([-a-z0-9_.!~*'();/?:@&=+$,]|%[0-9a-f][0-9a-f])*)?(#([-a-z0-9_.!~*'();/?:@&=+$,]|%[0-9a-f][0-9a-f])*)?)[^].,:;!)? \t\r\n<>\"]" +# email regex + color body brightblue default "((@(([0-9a-z-]+\\.)*[0-9a-z-]+\\.?|#[0-9]+|\\[[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\]),)*@(([0-9a-z-]+\\.)*[0-9a-z-]+\\.?|#[0-9]+|\\[[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\]):)?[0-9a-z_.+%$-]+@(([0-9a-z-]+\\.)*[0-9a-z-]+\\.?|#[0-9]+|\\[[0-2]?[0-9]?[0-9]\\.[0-2]?[0-9]?[0-9]\\.[0-2]?[0-9]?[0-9]\\.[0-2]?[0-9]?[0-9]\\])" + color body brightblue default "(my regex 1)" + color body brightcyan default "(my regex 2)" + color body brightred default "(my regex 3|my regex 4|my regex 5)" + +# smileys, the right way and the backward-ass euro way + 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 yellow default + color quoted4 brightmagenta default + color quoted5 brightgreen default + color quoted6 brightyellow default + color quoted7 brightcyan default + +# PGP messages + color body brightgreen default "^gpg signature OK.*" + color body yellow default "^gpg " + color body brightred default "^gpg signature NOT OK. *" diff --git a/.mutt/colors/miromiro b/.mutt/colors/miromiro @@ -0,0 +1,73 @@ +### +# mutt colors file +### + +# set default + color normal white default + +# main colors + color tree brightmagenta default + color error brightred default + color message brightgreen default + +# color all ML mails + color index blue default "~u" + +# uncolor certain messages +uncolor index "~P" +uncolor index "~C @.com" +uncolor index "~N ~u" +uncolor index "~N !~u" +uncolor index "~T" +uncolor index "~D" + +# and recolor them appropriately + color index brightyellow default "~P" + color index green default "~C @.com" + color index red default "~N ~u" # new ML mail + color index brightred default "~N !~u" # new non-ML mail + color index brightgreen default "~T" + color index brightblack default "~D" + +# set up the headers + color header brightmagenta default "^from:" + color header green default "^to:" + color header yellow default "^cc:" + color header blue default "^date:" + color header brightgreen default "^subject:" + +# message bodies + color attachment brightblack default + color search red brightblack + color signature cyan default + color tilde brightblack default + color hdrdefault yellow default + color bold brightyellow default + +# urls + color body brightblue default "(^|<| )mailto:[^ ]+@[^ ]( |>|$)" + color body brightblue default "(^|<| )(http|https|ftp|file|telnet|news|finger)://[^ ]+( |>|$)" + +# smileys, the right way and the backward-ass euro way + 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 yellow default + color quoted4 brightmagenta default + color quoted5 brightgreen default + color quoted6 brightyellow default + color quoted7 brightcyan default + +# PGP messages + color body brightgreen default "^gpg: Good signature .*" + color body yellow default "^gpg: " + color body brightred default "^gpg: BAD signature from. *" diff --git a/.muttrc b/.muttrc @@ -0,0 +1,53 @@ +# +# author : Xu Xiaodong <xxdlhy@gmail.com> +# modified : 2012 May 19 +# + +source ~/.gmailrc +source ~/.mutt/colors/darkcourses + +set header_cache = ~/.mutt/cache/headers +set message_cachedir = ~/.mutt/cache/bodies +set certificate_file = ~/.mutt/certificates +set editor = "vim" + +set from = "xxdlhy@gmail.com" +set realname = "Xu Xiaodong" +set folder = "imaps://imap.gmail.com:993" +set spoolfile = "+INBOX" + +set imap_check_subscribed + +set hostname = gmail.com +set mail_check = 120 +set timeout = 300 +set imap_keepalive = 300 + +set postponed = "+[GMail]/Drafts" +set record = "+[GMail]/Sent Mail" +set move = no + +set include + +set sort = 'threads' +set sort_aux = 'reverse-last-date-received' +set auto_tag = yes + +ignore "Authentication-Results:" +ignore "DomainKey-Signature:" +ignore "DKIM-Signature:" + +hdr_order Date From To Cc +alternative_order text/plain text/html * +auto_view text/html + +bind editor <Tab> complete-query +bind editor ^T complete +bind editor <space> noop + +macro index,pager y "<enter-command>unset trash\n <delete-message>" "Gmail archive message" +macro index,pager d "<enter-command>set trash=\"imaps://imap.googlemail.com/[GMail]/Bin\"\n <delete-message>" "Gmail delete message" +macro index,pager gi "<change-folder>=INBOX<enter>" "Go to inbox" +macro index,pager ga "<change-folder>=[Gmail]/All Mail<enter>" "Go to all mail" +macro index,pager gs "<change-folder>=[Gmail]/Starred<enter>" "Go to starred messages" +macro index,pager gd "<change-folder>=[Gmail]/Drafts<enter>" "Go to drafts" diff --git a/dotman b/dotman @@ -33,19 +33,21 @@ my @dots = qw( gtkrc.mine irbrc mplayer + mutt + muttrc pentadactyl pentadactylrc perltidyrc rtorrent.rc themes tmux.conf - Xdefaults - Xdefaults.d xinitrc xmodmaprc zathurarc zprofile zshrc + Xdefaults + Xdefaults.d ); # Process options