Add mutt config
- Id
- fc54950ef981febf9422ad38bea15baa9ce61d21
- Author
- Caio
- Commit time
- 2011-06-18T14:56:10-03:00
Modified .gitignore
vim/doc/*
mplayer/registry
vim/.netrwhist
+mutt/headercache
Created mutt/colors
+# vim: filetype=muttrc
+
+#
+#
+# make sure that you are using mutt linked against slang, not ncurses, or
+# suffer the consequences of weird color issues. use "mutt -v" to check this.
+
+# custom body highlights -----------------------------------------------
+# highlight my name and other personally relevant strings
+#color body color136 color234 "(ethan|schoonover)"
+# custom index highlights ----------------------------------------------
+# messages which mention my name in the body
+#color index color136 color234 "~b \"phil(_g|\!| gregory| gold)|pgregory\" !~N !~T !~F !~p !~P"
+#color index J_cream color230 "~b \"phil(_g|\!| gregory| gold)|pgregory\" ~N !~T !~F !~p !~P"
+#color index color136 color37 "~b \"phil(_g|\!| gregory| gold)|pgregory\" ~T !~F !~p !~P"
+#color index color136 J_magent "~b \"phil(_g|\!| gregory| gold)|pgregory\" ~F !~p !~P"
+## messages which are in reference to my mails
+#color index J_magent color234 "~x \"(mithrandir|aragorn)\\.aperiodic\\.net|thorin\\.hillmgt\\.com\" !~N !~T !~F !~p !~P"
+#color index J_magent color230 "~x \"(mithrandir|aragorn)\\.aperiodic\\.net|thorin\\.hillmgt\\.com\" ~N !~T !~F !~p !~P"
+#color index J_magent color37 "~x \"(mithrandir|aragorn)\\.aperiodic\\.net|thorin\\.hillmgt\\.com\" ~T !~F !~p !~P"
+#color index J_magent color160 "~x \"(mithrandir|aragorn)\\.aperiodic\\.net|thorin\\.hillmgt\\.com\" ~F !~p !~P"
+
+# for background in 16 color terminal, valid background colors include:
+# base03, bg, black, any of the non brights
+
+# basic colors ---------------------------------------------------------
+color normal color241 color234
+color error color160 color234
+color tilde color235 color234
+color message color37 color234
+color markers color160 color254
+color attachment color254 color234
+color search color61 color234
+#color status J_black J_status
+color status color241 color235
+color indicator color234 color136
+color tree color136 color234 # arrow in threads
+
+# basic monocolor screen
+mono bold bold
+mono underline underline
+mono indicator reverse
+mono error bold
+
+# index ----------------------------------------------------------------
+
+#color index color160 color234 "~D(!~p|~p)" # deleted
+#color index color235 color234 ~F # flagged
+#color index color166 color234 ~= # duplicate messages
+#color index color240 color234 "~A!~N!~T!~p!~Q!~F!~D!~P" # the rest
+#color index J_base color234 "~A~N!~T!~p!~Q!~F!~D" # the rest, new
+color index color160 color234 "~A" # all messages
+color index color166 color234 "~E" # expired messages
+color index color33 color234 "~N" # new messages
+color index color33 color234 "~O" # old messages
+color index color61 color234 "~Q" # messages that have been replied to
+color index color240 color234 "~R" # read messages
+color index color33 color234 "~U" # unread messages
+color index color33 color234 "~U~$" # unread, unreferenced messages
+color index color241 color234 "~v" # messages part of a collapsed thread
+color index color241 color234 "~P" # messages from me
+color index color37 color234 "~p!~F" # messages to me
+color index color37 color234 "~N~p!~F" # new messages to me
+color index color37 color234 "~U~p!~F" # unread messages to me
+color index color240 color234 "~R~p!~F" # messages to me
+color index color160 color234 "~F" # flagged messages
+color index color160 color234 "~F~p" # flagged messages to me
+color index color160 color234 "~N~F" # new flagged messages
+color index color160 color234 "~N~F~p" # new flagged messages to me
+color index color160 color234 "~U~F~p" # new flagged messages to me
+color index color235 color160 "~D" # deleted messages
+color index color245 color234 "~v~(!~N)" # collapsed thread with no unread
+color index color136 color234 "~v~(~N)" # collapsed thread with some unread
+color index color64 color234 "~N~v~(~N)" # collapsed thread with unread parent
+# statusbg used to indicated flagged when foreground color shows other status
+# for collapsed thread
+color index color160 color235 "~v~(~F)!~N" # collapsed thread with flagged, no unread
+color index color136 color235 "~v~(~F~N)" # collapsed thread with some unread & flagged
+color index color64 color235 "~N~v~(~F~N)" # collapsed thread with unread parent & flagged
+color index color64 color235 "~N~v~(~F)" # collapsed thread with unread parent, no unread inside, but some flagged
+color index color37 color235 "~v~(~p)" # collapsed thread with unread parent, no unread inside, some to me directly
+color index color136 color160 "~v~(~D)" # thread with deleted (doesn't differentiate between all or partial)
+#color index color136 color234 "~(~N)" # messages in threads with some unread
+#color index color64 color234 "~S" # superseded messages
+#color index color160 color234 "~T" # tagged messages
+#color index color166 color160 "~=" # duplicated messages
+
+# message headers ------------------------------------------------------
+
+#color header color240 color234 "^"
+color hdrdefault color240 color234
+color header color241 color234 "^(From)"
+color header color33 color234 "^(Subject)"
+
+# body -----------------------------------------------------------------
+
+color quoted color33 color234
+color quoted1 color37 color234
+color quoted2 color136 color234
+color quoted3 color160 color234
+color quoted4 color166 color234
+
+color signature color240 color234
+color bold color235 color234
+color underline color235 color234
+color normal color244 color234
+#
+color body color245 color234 "[;:][-o][)/(|]" # emoticons
+color body color245 color234 "[;:][)(|]" # emoticons
+color body color245 color234 "[*]?((N)?ACK|CU|LOL|SCNR|BRB|BTW|CWYL|\
+ |FWIW|vbg|GD&R|HTH|HTHBE|IMHO|IMNSHO|\
+ |IRL|RTFM|ROTFL|ROFL|YMMV)[*]?"
+color body color245 color234 "[ ][*][^*]*[*][ ]?" # more emoticon?
+color body color245 color234 "[ ]?[*][^*]*[*][ ]" # more emoticon?
+
+## pgp
+
+color body color160 color234 "(BAD signature)"
+color body color37 color234 "(Good signature)"
+color body color234 color234 "^gpg: Good signature .*"
+color body color241 color234 "^gpg: "
+color body color241 color160 "^gpg: BAD signature from.*"
+mono body bold "^gpg: Good signature"
+mono body bold "^gpg: BAD signature from.*"
+
+# yes, an insance URL regex
+color body color160 color234 "([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<>\"]"
+# and a heavy handed email regex
+#color body J_magent color234 "((@(([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]\\])"
+
+# Various smilies and the like
+#color body color230 color234 "<[Gg]>" # <g>
+#color body color230 color234 "<[Bb][Gg]>" # <bg>
+#color body color136 color234 " [;:]-*[})>{(<|]" # :-) etc...
+# *bold*
+#color body color33 color234 "(^|[[:space:][:punct:]])\\*[^*]+\\*([[:space:][:punct:]]|$)"
+#mono body bold "(^|[[:space:][:punct:]])\\*[^*]+\\*([[:space:][:punct:]]|$)"
+# _underline_
+#color body color33 color234 "(^|[[:space:][:punct:]])_[^_]+_([[:space:][:punct:]]|$)"
+#mono body underline "(^|[[:space:][:punct:]])_[^_]+_([[:space:][:punct:]]|$)"
+# /italic/ (Sometimes gets directory names)
+#color body color33 color234 "(^|[[:space:][:punct:]])/[^/]+/([[:space:][:punct:]]|$)"
+#mono body underline "(^|[[:space:][:punct:]])/[^/]+/([[:space:][:punct:]]|$)"
+
+# Border lines.
+#color body color33 color234 "( *[-+=#*~_]){6,}"
+
+#folder-hook . "color status J_black J_status "
+#folder-hook gmail/inbox "color status J_black color136 "
+#folder-hook gmail/important "color status J_black color136 "
+
Created mutt/mailboxes
+mailboxes +notes "+work/Drafts" "+work/INBOX" "+work/JunkMail" "+work/JunkMail.LearnasHAM" "+work/JunkMail.LearnasSPAM" "+work/Queue" "+work/Sent" "+work/Trash" "+work/abat" "+work/archive" "+work/augeas" "+work/bugzilla" "+work/builds" "+work/fedora-buildsys" "+work/fedora-devel" "+work/fedora-ppc" "+work/fedora-releng" "+work/infra" "+work/invitations" "+work/ltc" "+work/ltc-br" "+work/ltc-morale" "+work/powerpack" "+work/vpl-sst"
Created mutt/mailcap
+text/html; w3m -I %{charset} -T text/html; copiousoutput;
Created mutt/muttrc
+# vim: filetype=muttrc
+
+set realname="Caio Romão"
+set from="rcaio@br.ibm.com"
+set sendmail="/usr/bin/msmtp"
+set envelope_from=yes
+set edit_headers=yes
+set editor="/usr/bin/vim"
+
+set sort=threads
+set sort_aux=reverse-last-date-received
+set sort_browser=reverse-date
+
+set mail_check=30
+set mbox_type=Maildir
+set folder=$HOME/.mail
+set mbox="+work/archive"
+set spoolfile="+work/INBOX"
+set postponed="+work/Drafts"
+set trash="+work/Trash"
+set record="+work/Sent"
+source $HOME/.mutt/mailboxes
+
+# set imap_check_subscribed=yes
+set header_cache=~/.mutt/headercache
+set sig_dashes
+set signature=~/.signature
+
+set ssl_starttls=no
+
+set sidebar_visible=yes
+set sidebar_width=35
+set sidebar_delim="|"
+
+set query_command = "~/bin/bluepages --mutt '%s'"
+set beep_new=yes
+set ascii_chars=yes
+set auto_tag=yes
+set autoedit=yes
+set charset="utf-8"
+set config_charset="utf-8"
+set confirmappend=no
+set delete=yes
+set include=yes
+set mark_old=no
+set move=yes
+set pager_index_lines=15
+set prompt_after=no
+set read_inc=25
+set reply_to=yes
+set reverse_name=yes
+set save_empty=no
+set send_charset="utf-8:iso-8859-1"
+set tilde=yes
+set write_inc=25
+set collapse_unread=no
+set reply_regexp="^(re([\[0-9\]+])*|aw|res):[ \t]*"
+set rfc2047_parameters=yes
+set markers
+set smart_wrap
+
+# load colors
+source $HOME/.mutt/colors
+
+# Header fields I don't normally want to see
+ignore *
+unignore From:
+unignore To:
+unignore Reply-To:
+unignore Mail-Followup-To:
+unignore Subject:
+unignore Date:
+unignore CC:
+unignore BCC:
+unignore x-mailer
+unignore x-url
+hdr_order From: Return-Path: Reply-To: Date: Subject: Importance:
+
+# Formatting
+set compose_format="-- %v-- Compose [Approximate Message Size: %l Attachments: %a]%>-"
+set attach_format="%u%D%I %t%4n %T%.40d%> [%.7m/%.10M, %.6e%?C?, %C?, %s] "
+set alias_format="%4n %2f %t %-12a %r"
+set status_format="-%r-%v--[%?M?%M/?%m msgs%?n?, %n new?%?d?, %d del?%?F?, %F flag?%?t?, %t tag?%?p?, %p postp?%?b?, %b inc?%?l?, %l?]--(%f)--%s-%>-%P-"
+set folder_format="%3C %t%N %F %-8.8u %-8.8g %8s %d %f"
+set message_format="%-.16n: %s"
+set pager_format="~~~~~~~~~ On %{%a, %d %b %Y} at [%[%H:%M]]: %s %|~"
+set attribution='On %{%a, %d %b %Y}, %n wrote:\n'
+set forward_format = "[%s]"
+
+# bindings
+# ctrl-n, ctrl-p to select next, prev folder
+# ctrl-o to open selected folder
+bind index \CP sidebar-prev
+bind index \CN sidebar-next
+bind index \CO sidebar-open
+bind pager \CP sidebar-prev
+bind pager \CN sidebar-next
+bind pager \CO sidebar-open
+
+# emacs-like bindings for moving to top/bottom
+bind generic "\e<" first-entry
+bind generic \e> last-entry
+bind generic { top-page
+bind generic } bottom-page
+bind generic \177 last-entry
+
+# get the url view working
+macro index \cb |urlview\n 'call urlview to extract URLs out of a message'
+macro pager \cb |urlview\n 'call urlview to extract URLs out of a message'
+
+# h will take you to the folder list in the index
+macro index h "c?t"
+
+# Shortcut for inboxes
+macro index ga "<change-folder>=work/INBOX<enter>"
+macro index gA "<change-folder>=notes<enter>"
+
+# b toggles sidebar visibility
+macro index b ':toggle sidebar_visible '
+macro pager b ':toggle sidebar_visible '
+
+bind pager G bottom
+
+macro index \Cr "<tag-pattern>~N\n<tag-prefix><clear-flag>N" \
+ "Mark all new messages as read"
+
+# Automatically use entries from ~/.mailcap to view these MIME types
+
+set mailcap_path=$HOME/.mutt/mailcap
+auto_view application/x-gunzip
+auto_view application/x-gzip
+auto_view text/html
+alternative_order text/enriched text/plain text/html
+
+# aliases for broken MUAs
+charset-hook US-ASCII ISO-8859-1
+charset-hook us-ascii ISO-8859-1
+charset-hook x-unknown ISO-8859-1
+charset-hook windows-1250 CP1250
+charset-hook windows-1251 CP1251
+charset-hook windows-1252 CP1252
+charset-hook windows-1253 CP1253
+charset-hook windows-1254 CP1254
+charset-hook windows-1255 CP1255
+charset-hook windows-1256 CP1256
+charset-hook windows-1257 CP1257
+charset-hook windows-1258 CP1258
+