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

set abort_unmodified=yes	# automatically abort replies if I don't
				# change the message
#set alias_file=~/.mail_aliases	# where I keep my aliases
#set allow_8bit			# never do Q-P encoding on legal 8-bit chars
#set arrow_cursor		# use -> instead of hiliting the whole line
#set askbcc
#set askcc
#set attribution="On %d, %n wrote:"
set autoedit			# go to the editor right away when composing
#set auto_tag			# always operate on tagged messages
set charset="iso-8859-1"	# character set for your terminal
set copy=yes			# always save a copy of outgoing messages
set delete=ask-no		# Don't purge deleted messages, unless you 
                                # answer yes.
set edit_hdrs			# let me edit the message header when composing

#set editor="emacs -nw"		# editor to use when composing messages
#set editor="vi '+/^$'"
#set editor="vim '+/^$'"
#set editor="elvis '+/^$'"
#set editor="pico -w +8"
#set editor="fte -l8"
set editor=builtin

#set visual="pico -w +8"	# editor invoked by ~v in the builtin editor
set visual="vi '+/^$'"

set pager_stop    
set nobeep
set noquote_sig     # Remove signature lines from replys.

#set pipe_decode

#set fcc_attach		# Include attachments in copies of sent messages?
#set force_name	# save outgoing by recipient, create if mailbox doesn't exist

## ===================================
## format strings:
## "forw_format", "hdr_format", "pager_format", and "status_format".
## format strings use these format fields (as of version 0.67):
##	a-cd-f--i--lmn----stu---y-  lower case letters (12)
##	--C--F-----LMN----ST---XYZ  upper case letters (09)
## %a      address of the author
## %c      number of characters (bytes) in the message
##    %C   current message number
## %d      date and time of the message
## %f      entire From: line (address + real name)
##    %F   entire From: line, unless from self
## %i      message-id of the current message
## %l      number of lines in the message
##    %L   list-from function
## %m      number of the month (1-12)
##    %M   three-letter abbreviation for the month
## %n      real (personal) name of author
##    %N   number of the day of the month
## %s      subject of the message
##    %S   status of the message ([New], [Deleted], [Flagged], [Tagged])
## %t      the appropriate character from the ``tochars'' string
##    %T   total number of message in the mailbox
## %u      user (login) name of the author
## %y      last two digits of the year
## %>X     right justify the rest of the string and pad with characater "X"
## %|X     pad to the end of the line with character "X"
##    %Y   year
##    %Z   message status flags

## forw_format - format the text used in the format attribution
## default:  set forw_format="[%a: %s]"

## hdr_format - format of all mails shown in the main-menu display
## Examples:
##  set hdr_format="%C %Z %M %2N %-15.15F (%6c) %s"
##  set hdr_format="%C %Z %2m%2N %-17.17n (%4c) %s"
##  set hdr_format="%C %Z %2m%2N %-17.17n (%4l) %s"
##  set hdr_format="%C %Z %y%02m%02N %-17.17F (%3l) %s"  
##set hdr_format="%4C %Z %M %02N %-15.15F (%4l) %s"

## pager_format - format of summary on current mail in the pager
## (until 0.52: pager_fmt)
## Examples:
##  set pager_format="%S %C/%T: %-20.20n   %s"  # default
##  set pager_format="%S %C/%T?%n: %-20.20n %s"
##  set pager_format="%S [%C/%T] %n (%l) %s"      # Sven's favourite

## status_format - format of summary on the current folder in the main-menu
## meta strings:
##	-----f-h---lmn-p--st-v----  lower case letters (09)
##	------------M----------X--  upper case letters (02)
## %d      the number of messages with the flag 'delete'  (v64)
## %f      the full pathname of the current mailbox
## %h      local hostname
## %l      size (in bytes) of the current mailbox
## %m      the number of messages in the mailbox
## %M      the number of messages shown (i.e., which match the current limit)
## %n      number of new messages in the mailbox
## %p      number of postponed messages
## %s      current sorting mode
## %t      number of tagged messages
## %v      Mutt version string
## %>X     right justify the rest of the string and pad with "X"
## %|X     pad to the end of the line with "X"

## Examples:
##  set status_format="%v: %f (%s) [%?M/?%m]  [flags:%?t tagged,?%n new%?p post?]" #TEST
##  set status_format="%v: %f (%s) [%?M/?%m]  [flags:%?t tagged,?%n new]"
##  set status_format="%v: %f (%s) [%M/%m]\n[flags:n=%n,D=%d,t=%t,!=%F]"
##  set status_format="%v: %f (%s) [%M/%m]  [flags:n=%n,t=%t]"
##  set status_format="%v:    (%s) [%M/%m]  [flags:n=%n,t=%t]"
##  set status_format="%v:    (%s) [%M/%m]  [flags:n:%n,t:%t,p:%p]"
##  set status_format="%v:    (%s) [%M/%m]  [flags:%?02n new?,t:%t]"
##  set status_format="%v: %f (%s) [%M/%m]  [flags:%n new,%?t tagged?]"
##  set status_format="%v: %f (%s) [%M/%m;%l bytes]  [N=%n,*=%t,post=%p]"
##  set status_format="%v: %f (%s) [%M/%m]  [N=%n,*=%t,post=%p]"

set folder="/var/spool/mail"
set postponed=+postponed
#set header			# include message header when replying
set help			# show the help lines
#set history=20			# number of lines of history to remember
#set nohold			# move read message to ``mbox''
#set hostname="foo.boo.com"	# my DNS domain
#set in_reply_to="%i; from %f on %d"
#set include=yes		# always include the message in replies
#set indent_str="> "
#set local_sig=~/.sig-local
set mailcap_path="~/.mailcap:/etc/mailcap"
#set nomark_old			# i don't care about whether a message is old
set mbox=+read			# where to store read messages
#set metoo			# don't remove my address when replying
set mime_fwd			# use message/rfc822 type to forward messages
#set move=yes			# don't ask about moving messages, just do it
#set pager=less			# some people prefer an external pager
set pager_context=1		# no. of lines of context to give when scrolling
#set pager_format="-%S- %-20.20f %s"	# format of the pager status bar
#set pager_stop			# don't move to the next message on next-page
#set print=ask-yes		# ask me if I really want to print messages
set print_cmd=/bin/false	# how to print things (I like to save trees)
set noprompt_after	# ask me for a command after the external pager exits
#set quote_regexp="^ *[a-zA-Z]*[>:#}]"	# how to catch quoted text
set read_inc=200		# show progress when reading a mailbox
#set recall		# when there are postponed messages, ask me to resume
set record=+out		# save copies of outgoing messages in +out
#set remote_sig=~/.signature
#set reply_to=ask-yes	# ask me if I want to use the given reply-to address
#set resolve		# move to the next message when an action is performed
#set reverse_alias		# attempt to look up my names for people
set nosave_empty		# remove files when no messages are left
#set save_name		# save outgoing messages by recipient, if the
			# mailbox already exists
#set sendmail="/usr/bin/sendmail"	# where to find sendmail
#set signature="~/.signature"	# file which contains my signature
set spoolfile="/var/spool/mail/`whoami`"  # where my new mail is located
#set shell="/bin/sh"		# program to use for shell escapes
#set status_on_top		# some people prefer the status bar on top
#set strict_threads		# don't thread by subject
set tilde		# use virtual lines to pad blank lines in the pager
#set timeout=0		# how long to wait before autochecking for new mail
set tmpdir="/tmp"		# where to store temp files
#set to_chars=" +TCF"
#set url_regexp="((ftp|http)://|(ftp|www[-a-z0-9]*)\\.)[^ \t\n]*[^., \t\n>)]|(mailto:)?[^[ \t\n<(@]+@[^ \t\n@]*[^].,:;!? \t\n>)@\"]"
set use_mailcap=ask-yes		# Ask if should use a mailcap entry when found
set write_inc=0 	       	# show progress while writing mailboxes

#
# I subscribe to a lot of mailing lists, so this is _very_ useful.  This
# groups messages on the same subject to make it easier to follow a
# discussion.  Mutt will draw a nice tree showing how the discussion flows.
#
set sort=threads

#
# 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 date x-mailer x-url

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

color hdrdefault brightcyan black
color quoted cyan black
color signature brightred black
color indicator brightyellow red
color error brightred black
color status brightyellow blue
color tree brightmagenta black	# the thread tree in the index menu
color tilde brightmagenta black
color message brightcyan black
color normal brightwhite black
color attachment brightmagenta black
color search black green	# how to hilite search patterns in the pager
color header brightyellow black ^(From|Subject):
color body brightyellow black "(ftp|http)://[^ ]+"	# point out URLs
color body brightcyan black [-a-z_0-9.]+@[-a-z_0-9.]+	# e-mail addresses
color underline brightgreen black

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

# Use the keys Ctrl-B to connect to a URL using lynx while in mutt.

macro index \cb |urlview\n	# simulate the old browse-url function
macro pager \cb |urlview\n	# simulate the old browse-url function

#
# Key bindings
#
bind index { top-page
bind index } bottom-page

bind pager G bottom

#
# Keyboard macros
#
macro index \# /bug

# POP3 support...
# If you want mutt to connect to your service provider and get your
# pop3 mail, answer the questions below, then when you're in mutt & 
# connected, press the capital 'G' key.
#
#set pop_delete               # Delete mail after retrieving it.
#set pop_host=foo.boo.com     # Your internet service providers mail server
#set pop_user=jerry           # Your username: = login: jerry
#set pop_pass=secret          # Your password: = secret

# User Defined Headers...
#
# my_hdr X-Useless-Header: Look ma! It's a \# sign!
#
# You can put a From: and or a Reply-To: here...
#
# my_hdr Reply-To: jerry@foo.boo.com   <-For example.)

my_hdr From: Jerry Donut <jerry@foo.boo.com>       
my_hdr Reply-To: your@email.address in the /root/.muttrc file.
  
# You can put a Return-Receipt-To: if you want to be notified when mail
# can't be delivered and why.

my_hdr Return-Receipt-To: your@email.address
#set dsn_notify="failure,delay"   # Also remove the # from these two sets.
#set dsn_return="hdrs"            
 
# I use Mutt on several different machines, so I put local config commands
# in a separate file so I can have the rest of the settings the same on all
# machines.
#
#source ~/.muttrc-local

## The variables pgp and pgp_autosign are only available in mutt-pgp.

#### PGP stuff

#set pgp_autosign	# automatically sign all outgoing messages with PGP
#set nopgp_encryptself	# use "+encrypttoself" flag when encrypting with PGP
#set pgp_replypgp	# automatically encrypt replies to encrypted messages
			# when replying
			
###### UV
#  set verify_sig=ask  # ask me whether I want to check a pgp signature
#  set verify_sig=no   # do not ask me whether I want to check a pgp signature

#set pgp_timeout=600	# The number of seconds after which a PGP
			# password will expire if not used (must be < 32767 !)
		
#set pgp=/usr/local/bin/pgp	# how to invoke PGP

#set pgp_sign_as="0xABCDEFGH"	# which private keys to use when signing 
				# messages with PGP
				
auto_view text/html application/x-gunzip application/postscript \
	application/x-troff-man application/x-troff-me application/x-troff \
	application/x-gtar application/x-tar application/x-tar-gz \
	application/x-sh application/x-csh application/x-shar \
	application/x-latex application/x-tex application/x-dvi \
	application/x-zip-compressed application/x-cpio text/richtext \
	application/pgp-keys application/octet-stream audio/*

#macro	pager			"\Ck"	"|pgp -kaf\r"
#macro	index			"\Ck"	"|pgp -kaf\r"

# EOF
