# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
#
# The format of this file is one command per line.  Everything after a pound
# sign (#) is a comment, unless a backward slash (\) precedes it
#


# Note: $folder should be set _before_ any other path vars where `+' or `='
# is used because paths are expanded when parsed

set folder=~/Mail		# where i keep my mailboxes

## Mail aliases

source ~/.mail_aliases
set alias_file=~/.mail_aliases	# where I keep my aliases


## Mail composing ...

unset askcc			# do not ask for cc address before composing
unset askbcc			# do not ask for bcc address before composing
set autoedit			# go to the editor right away when composing
set copy=yes			# always save a copy of outgoing messages
set edit_headers		# let me edit the message header when composing
set editor = "vim -c 'set tw=72'"	# editor to use when composing messages
#set force_name			# fcc by recipient, create if mailbox doesn't exist
set postponed=+drafts		# mailbox to store postponed messages in
set recall=no			# do not prompt to recall postponed messages
set use_domain			# qualify local addresses with $domain
set use_from			# always generate the `From:' header field
set visual=vim			# editor invoked by ~v in the builtin editor


## Replying ...
#
set abort_unmodified=yes	# automatically abort replies if I don't
				# change the message
#set attribution="On %d, %n wrote:"	# how to attribute replies
set fast_reply			# skip initial prompts when replying
#set header			# include message header when replying
set include			# always include messages when replying
set indent_string="> "		# how to quote replied text
unset metoo			# remove my address when replying
set reply_to			# always use reply-to if present
set reverse_name		# use my address as it appears in the message
				# i am replying to


## Mail forwarding ...
#
#set forward_decode		# weed and MIME decode forwaded messages
set forward_format="Fwd: [%a: %s]"	# subject to use when forwarding messages
set forward_quote		# quote the header and body of forward msgs
set mime_forward=ask-no		# do not use message/rfc822 type to forward messages.
#set post_indent_string='---end quoted text---'


## Receiving mail ...
#
unset confirmappend		        # don't ask me if i want to append to mailboxes
unset confirmcreate		        # do not prompt when creating new files
#set mail_check=10		        # how often to poll for new mail
#set mbox=+inbox		        # where to store read messages
#set spoolfile='/'	# where my mail spool is located


## Sending mail ...
unset use_domain
unset use_from
unset fcc_attach		# keep attachments in copies of sent messages?
set hdrs			# include `my_hdr' lines in outgoing messages
#unset record=+sent		# default location to save outgoing mail
#set save_name			# save outgoing messages by recipient, if the
set sendmail="/usr/lib/sendmail -oi -oem"	# how to deliver mail
#set dsn_notify='failure,delay'	# when to return an error message
#set dsn_return=hdrs		# what to return in the error message


## Misc options ...
#
set delete=ask-yes		# purge deleted messages only after asking.
#set move=ask-yes		# ask before moving messages.
#set allow_8bit			# never do Q-P encoding on legal 8-bit chars
#set arrow_cursor		# use -> instead of hiliting the whole line
#set ascii_chars		# use ASCII instead of ACS chars for threads
set help			# show the help lines
set history=20			# number of lines of history to remember
#set hostname="debianut.ekmnet.in"	# my DNS domain
#set locale="C"			# locale to use for printing time
#set date_format="!%a, %b %d, %Y at %I:%M:%S%p %Z"	# default date format
set menu_scroll			# no implicit next-page/prev-page
#set charset="iso-8859-1"	# character set for your terminal
#set print=ask-yes		# ask me if I really want to print messages
set print_command=/bin/false	# how to print things (I like to save trees)
#set resolve		        # move to the next message when an action is performed
set save_empty			# do not remove files when no messages are left
#set shell="/bin/bash"		# program to use for shell escapes
set signature="~/.signature"	# file which contains my signature
unset strict_threads		# pseudo threading by subject
#set tmpdir=~/tmp		# where to store temp files
#set to_chars=" +TCF"
#set use_8bitmime		# enable the -B8BITMIME sendmail flag
set wait_key			# prompt when a pipe returns normal status
#set auto_tag			# always operate on tagged messages


## Index options ...
#
#set index_format="%4C %Z %{%m/%d} [%2N] %-15.15F (%4c) %s"
set index_format="%4C %Z %{%d/%m} %-20.20F (%5c) %s" # format of the index
#set index_format="%4C %Z %{%d/%m} %-20.20L (%5c) %s" # format of the index
#set mailcap_path="~/.mailcap:/usr/local/share/mailcap"
unset mark_old			# i don't care about whether a message is old
set read_inc=25			# show progress when reading a mailbox
set write_inc=25		# show progress while writing mailboxes
#set reply_regexp="^(re:[ \t]*)+"# how to identify replies in the subject:
#set reverse_alias		# attempt to look up my names for people
#set status_format="-%r-Mutt: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?  %l]---(%s)-%>-(%P)---"
#set status_on_top		# some people prefer the status bar on top
#set timeout=0			# timeout for prompt in the index menu


## Pager options ...
#
#set pager=less			# some people prefer an external pager
#set pager_context=3		# no. of lines of context to give when scrolling
#set pager_format="-%S- %-20.20f %s"	# format of the pager status bar
set pager_index_lines=8		# how many index lines to show in the pager
set pager_stop			# don't move to the next message on next-page
set prompt_after		# ask me for a command after the external pager exits
#set quote_regexp="^ *[a-zA-Z]*[>:#}]"	# how to catch quoted text
set tilde			# virtual lines to pad blank lines in the pager


## PGP options ...
#
#set pgp_strict_enc		# use Q-P encoding when needed for PGP
set pgp_verify_sig=ask-no	# don't automatically verify message signatures


## Sorting options ...
#
set sort=threads		# primary sorting method
#set sort_aux=reverse-date-received	# how to sort subthreads
set sort_aux=last-date		# date of the last message in thread is date of thread
#set sort_aux=date		# date of the first message in thread is date of thread
#set sort_browser=reverse-date	# how to sort files in the dir browser
set sort_browser=alpha		# how to sort files in the dir browser


# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# Header fields I don't normally want to see
#
ignore *		# this means "ignore all lines by default"

# I do want to see these fields, though!
unignore	from: subject to cc mail-followup-to date x-mailer x-url organisation organization


# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# Color definitions
#

#color normal white default
color quoted		green		black
color quoted1		yellow		black
color quoted2		magenta		black
color quoted3		red		black
color quoted4		brightgreen	black
color quoted5           brightyellow	black
color quoted6		brightmagenta	black
color quoted7		brightred	black

color hdrdefault	blue		black
color signature		cyan		black
color indicator		black		cyan
color error		brightred	black
color status		brightgreen	blue
color tree		red		black
color tilde		blue		black
color message		red		black
color markers		red		black
color attachment	brightyellow	black
color search		black		yellow

color underline		brightwhite	black
color bold		brightwhite	black

color header            yellow		black   ^Date:
color header            yellow		black   "^From "
color header		green		black	^From:
color header		green		black	^Reply-To:
color header		cyan		black	^To:
color header		cyan		black	^Cc:
color header		magenta		black	^Subject:
color header		brightblue	black	"^Received: from unknown \\(HELO"
color body		cyan		black	[\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+	# e-mail addresses
color body		brightblue	black	(http|ftp)://[\-\.\,/%~_:?\#a-zA-Z0-9]+	# point out URLs


# attributes when using a mono terminal
#mono header underline ^(From|Subject):
#mono quoted bold

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# Key bindings
#
#	maps:
#		alias		alias menu
#		attach		attachment menu
#		browser		directory browser
#		compose		compose menu
#		index		message index
#		pgp		pgp menu
#		postpone	postponed message recall menu
#		generic		generic keymap for all of the above
#		editor		line editor
#		pager		text viewer
#		

bind generic "\e<" first-entry	# emacs-like bindings for moving to top/bottom
bind generic \e> last-entry
bind generic { top-page
bind generic } bottom-page
bind generic \177 last-entry
macro index \cb |urlview\n	# simulate the old browse-url function
macro index S s+spam\n
macro pager S s+spam\n
#macro index \# /bug^M	        # search for bugs
#macro index "\""        ":set realname=\"real hairy macro\"^M:set ?realname^M" # and a comment to boot!
#macro index f1 :woohoo!
bind pager G bottom	                 # just like vi and less
#macro   pager   \Ck     "|pgp -kaf^M"   # a comment is valid here
#macro pager X "|morepgp^M"	         # pipe PGP message to a script
#bind editor \cy eol	# make ^Y jump to the end of the line

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# User Defined Headers
#

my_hdr Organization:  Secretariat of the Kerala Legislature 


# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# Specify default filename when saving messages
#
#	save-hook [!] 
#
#  is provided as default when saving messages from 

#save-hook mutt- =mutt-mail
#save-hook aol\.com +spam
#save-hook ^judge +diplomacy

save-hook . +saved
#save-hook linux-india@ +saved_linux-india
#save-hook linux-india-general@ +saved_linux-india-general
#save-hook ilug-cochin +saved_ilug-cochin


# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# Multiple spool mailboxes
#
#	mbox-hook [!] 
#
# Read mail in  is moved to  when  is
# closed.

#mbox-hook =mutt-users.in =mutt-users

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# Change settings based upon message recipient
#
#	send-hook [!] 
#
#  is executed when sending mail to an address matching 


send-hook ec90@yahoogroups.com 'set signature=~/.signature; my_hdr From: Sunil Thomas Thonikuzhiyil ; my_hdr  Return-Path: sunil_tt@vsnl.com;set record=+sent'






send-hook . 'set signature=~/.signature; my_hdr From: Sunil Thomas Thonikuzhiyil ; my_hdr  Return-Path: suniltt@vsnl.com; set record=+sent'


# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# Specify where to save composed messages
#
#	fcc-hook [!] 
#
#  is recipient(s),  is where to save a copy

# Somehow fcc-hook does not get activated if send-hook is used. --mvm

#fcc-hook linux-india@ +sent_linux-india
#fcc-hook linux-india-general@ +sent_linux-india-general
#fcc-hook ilug-cochin +sent_ilug-cochin
#fcc-hook . +sent


# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# Change settings based on mailbox
#
#	folder-hook [!] 
#
#  is executed when opening a mailbox matching 

#folder-hook . 'set sort=date-sent'
#folder-hook mutt 'set index_format="%4C %Z %02m/%02N %-20.20F (%4l) %s"'
folder-hook =mutt my_hdr From: sunil_tt@yahoo.com
#folder-hook . 'set reply_regexp="^re:[ \t]*"'

# this mailing list prepends "[WM]" to all non reply subjects, so set
# $reply_regexp to ignore it
#folder-hook +wmaker 'set reply_regexp="^(re:[ \t]*)?\[WM\][ \t]*"'

folder-hook sent* 'set index_format="%4C %Z %{%d/%m} %-20.20t (%5c) %s" '

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# Mailboxes to watch for new mail
#
#	mailboxes  [  ... ]
#

mailboxes ! +yahoo +lih +lig +ltsp +etherboot +elite-list +freshmeat +inbox +fsf+ilug-cochin

#mailboxes `echo $HOME/Mail/*`

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# Specify the order of the headers to appear when displaying a message
#
#	hdr_order  [  ... ]
#

unhdr_order *				# forget the previous settings
hdr_order date from subject to cc organisation organization x-mailer

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# Identify mailing lists I subscribe to
#
#	lists  [  ... ]

#lists linux-india@
#lists linux-india-digest@
#lists linux-india-general@
#lists ilug-cochin


# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# Automatically use entries from ~/.mailcap to view these MIME types
#
#	auto_view  [  ... ]

auto_view application/x-gunzip
auto_view application/x-gzip

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# Scoring
#
#	score  
#
# 9999 and -9999 are special values which cause processing of hooks to stop
# at that entry.  If you prefix the score with an equal sign (=), the score
# is assigned to the message and processing stops.

#score '~f ^me@cs\.hmc\.edu$' 1000
#score '~t mutt | ~c mutt' =500
#score '~f aol\.com$' -9999

# EOF

    Source: geocities.com/sunil_tt