muttrc

# Don't display certain headers
ignore *
unignore From Date Subject To CC In-Reply-To
unignore x-mailing-list posted-to

unset askbcc
unset askcc
set allow_ansi # allow ANSI color codes in messages.
set ascii_chars # Use ASCII chars for threading arrows.
set arrow_cursor # "->" as cursor (faster on slow networks).
unset collapse_unread # don't collapse threads with unread mails
unset confirmappend # prompt for confirm when appending message to ex. mbox
set confirmcreate # prompt for confirm when saving to non existing mbox
set delete_untag # untag messages when marking them for deletion
set digest_collapse # show digest parts in 'v' submenu
set duplicate_threads # thread messages with same message-id together
set edit_headers # put headers in editor when composing messages
set tilde # Internal Pager: ~~~~ at and of message?
set copy=yes

# let's make this straight: mutt is in use !
set user_agent

set pager_index_lines=10
set pager_stop # # don't advance if space is hit at end of message

#
# Sorting:
# (date-received, date-sent, from, mailbox-order, size, subject, threads,
# to, score) (and everything with a prefixed "reverse-")
# (sort_aux can be prefixed with "last-" to use last element in thread
# instead of first one)
#
set sort=threads # sorting the mails in threads
set sort_aux=date # sorting the threads
set sort_browser=alpha # sorting in file-browser
set print_command="a2psmail" # print using a2ps to default printer

# For emails that are sent, I do not care about the threads - the date when
# it was sent is (99% of the time) what I am looking for.
folder-hook +sent-mail "set sort=date-sent"

#
# Strings:
#
set attach_sep="n" # Separator to add between tagged attachements
#set charset="iso-8859-1" # Charset of Terminal (for display)
#set charset="en_CA.UTF-8" # Charset of Terminal (for display)
set send_charset="utf-8" # Charsets for outgoing messages.
set content_type="text/plain" # default Content-Type of message body
set simple_search="~f %s | ~C %s | ~s %s" # default pattern (Fr|To|Cc|Su)
set status_chars="-*%A" # status of mbox (unchanged, changed, readonly, attach)
set to_chars=" +TCF " # no to me, only to me, not only to me, Cc: to me,
# from me, to subscribed mailinglist.
#
# RegExps:
#
# Subject prefixes (removed on answering and threading)
# Special chars, which are not quote regexps, but :-)
set smileys="(»From )|(:[-^]?[][)(»«}{|/DP])"
set forward_format="Fwd: %s" # subject of forwarded mails
set index_format="%4C %Z %{%b %d} %-20.20F (%?M?C%3M&%4l?) %s"
# In IMAP folders display KByte (because lines are not available):
set quote_regexp="^[|:#}][ ]|^ *»|^[a-zA-Z]*» "

#
# alias_format
# (format of data displayed for the alias menu)
# %a alias name %n index number %r address %t tag-character
# %f flags (d for deleted)
#
set alias_format="%4n %2f %t %-12a %r"

# Some people send non-text mails.
auto_view text/x-vcard
auto_view text/html
auto_view application/x-tar-gz
alternative_order text/plain # I like plaintext more than html.

set save_address
set nouse_domain

#
# status_format
#
# %b # of folders with new mail %d # of deleted msgs
# %f mbox path %F # of flagged msgs %h hostname
# %m total# of messages %M # of shown msgs %n # of new msgs
# %l bytes in mbox %L size of limited msgs %o # of old msgs
# %p # of postponed. msgs %P percentage of the display
# %r readonly/changed %s sorting method %S sort_aux method
# %t # of tagged msgs %u # of unread msgs %v Mutt version
# %»X = right justify and pad with "X" %|X = pad with "X" to end of line
# %?«sequence_char»?«optional_string»? print «opt» iff «seq» is non zero
# %?«sequence_char»?«if_string»&«else_string»?
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-"

# %C current number %d last modified %f filename
# %F permissions %g group %l number of hard links
# %N "N" if new mail %s size in bytes %t "*" if tagged
# %u owner name %»X right justify the rest and pad with "X"
# %|X pad to the end of the line with character "X"
set folder_format="%3C %t%N %F %-8.8u %-8.8g %8s %d %f" # file browser menu

# Order to display the headers in
hdr_order Subject: From: Date: To: Cc: In-Reply-To:

# Automatically quote message
set include=yes

# Don't confirm using Reply-To: headers
set reply_to=yes

# Don't ask to move read messages to mbox on exit
set move=no
set quit=ask-yes

# if there is a problem when sending an email, let me know please
set dsn_notify="failure,delay,success"

set use_envelope_from=yes

#------------------------------------------------------------------------------
# vim key bindings
bind index H top-page
bind index M middle-page
bind index L bottom-page
bind pager G bottom
bind pager g top
bind index G last-entry
bind index g first-entry
bind generic j next-entry
bind generic k previous-entry
bind pager j next-line
bind pager k previous-line
bind index R group-reply
bind index ? search-reverse
bind index s save-message
bind index t next-new
bind index Cf forward-message
bind index m mail
bind generic Cc help
bind index Cc help
bind attach Cc help
bind compose Cc help
#bind url Cc help
bind alias Cc help
bind pager Cc help

#-----------------------------------------------------------------------------
# colors definition
#-----------------------------------------------------------------------------

# a good default please
color normal white black

# mutt system colors first
color error red black
color status white blue
color tree red black # the thread tree in the index
color tilde white black # white tildes like vi ;-)
color message cyan black # mutt messages, not emails dude
color markers cyan black
color index yellow black ~N # New emails
color index yellow black ~O # Old emails
color indicator yellow black # that sneaky little arrow in
 # the pager

# from here, we deal with email content i.e. 'body' keyword
color hdrdefault green black
color header yellow black ^(From:|Subject:)
color quoted magenta black # quoted text
color attachment magenta black
color signature yellow black
color search white green # how to hilite searches in the
 # pager

# emails and URLs
color body cyan black "(ftp|http|https|news|file|ssh)://[^ ]+" # picks up URLs
color body cyan black [-a-z_0-9.]+@[-a-z_0-9.]+ 

# smileys zone: :-) ;-) :-/ :-(
color body yellow black "[;:]-[)/(|]"
color body yellow black "[;:][)/(|]"
color body green black "[[:alpha:]]+://[^ ]*"

# PGP messages
color body brightyellow default "^gpg: Good signature .*"
color body white default "^gpg: "
color body brightwhite red "^gpg: BAD signature from.*"

#------------------------------------------------------------------------------
# configuration based on physical filesystem layout and account configuration
#------------------------------------------------------------------------------
set alias_file=~/mail/addressbook
source ~/mail/addressbook

source "~/mail/gmail.conf"
set certificate_file=~/mail/certificates

# keep a cache of headers for faster loading (1.5.9+?)
set header_cache="~/mail/headers-cache"
Advertisements


  1. […] configuration files are: muttrc, fetchmailrc and procmailrc. The imap gmail configuration file is […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s



%d bloggers like this: