###############################################################################
# Niko's personal .muttrc (1.0.x)
# configured on Wed, 31st March 1999 at 2:25

###############################################################################
#	F O L D E R S   &   F I L E S   T O   U S E
###############################################################################

set folder="~/mail"			# where i keep my mailboxes
set alias_file="~/.mail_aliases"	# where I keep my aliases
set mailcap_path="~/.mailcap:/etc/mailcap"
set copy=yes				# always save a copy of outgoing messages
set mbox="~/mail/oldmail"		# where to store read messages
#set mbox_type="mbox"
unset confirmappend			# don't ask me if i want to append to mailboxes
set confirmcreate			# prompt when creating new files
set postponed=+postponed		# mailbox to store postponed messages in
set record="~/mail/sent-mail"		# default location to save outgoing mail
set move=yes				# don't ask about moving messages, just do it

#set save_empty				# remove files when no messages are left
unset save_name				# save outgoing messages by recipient, if the
unset save_address			# save mail by senders address
set delete=yes				# purge deleted messages without asking
#set spoolfile='/var/spool/mail/user'	# where my new mail is located
#set tmpdir=~/tmp			# where to store temp files

###############################################################################
#	E D I T O R S	&   T H E I R   C O N F I G
###############################################################################

set abort_unmodified=yes	# automatically abort replies if I don't
				# change the message
#set abort_nosubject=ask-yes

set include			# always include messages when replying
set indent_string=">"		# how to quote replied text
set signature="~/.signature"	# file which contains my signature
#set sig_dashes			# set whether sig dashes should be applied

#set editor="vim +"		# editor to use when composing messages
set editor="joe"

###############################################################################
#	S T R I N G S
###############################################################################

set attribution="On %d, %n wrote:"	# how to attribute replies
set forward_format="[%a: %s]"		# subject to use when forwarding messages
set reply_regexp="^([rR][eE]:[ \t]*)+"	# how to identify replies in the subject
set quote_regexp="^ *[a-zA-Z]*[>:#}]"	# how to catch quoted text
set index_format="%Z %3C %{%b %d} %-19.19L (%5c) %s" # format of the mails in the index

#set alias_format=""%2n %t %-10a   %r"
#set attach_format="%u%D%t%2n %T%.40d%> [%.7m/%.10M, %.6e, %s] "
#set date_format="!%a, %b %d, %Y at %I:%M:%S%p %Z"
#set folder_format="%N %F %2l %-8.8u %-8.8g %8s %d %f"
set folder_format="%N %-7u %7s %d %f"
#set message_format="%s"
#set pager_format="-%S- %-20.20f %s"	# format of the pager status bar
#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 post_indent_string='---end quoted text---'
#my_hdr X-Useless-Header: Look ma, it's a \# sign!	# real comment
#my_hdr X-Operating-System: `uname -rsm`

#set realname="nobody"
#set alternates="nobody@localnet"	# enter all your alternative addresses
#set hostname="localnet"		# my DNS *domain*
#unset hidden_host			# the hostname will be cut off
set charset="iso-8859-1"		# character set for your terminal
set locale="de"				# locale to use for printing time

###############################################################################
#	E N C R Y P T I O N
###############################################################################
# comment out if no PGP is compiled into the binary or no PGP is installed

# look in /usr/share/doc/packages/mutt/samples for configurations for
# pgp2, pgp5, pgp6 and gpg

source /usr/share/doc/packages/mutt/samples/gpg.rc

#unset pgp_autosign
#unset pgp_autoencrypt
#unset pgp_long_ids
#set pgp_replyencrypt
set pgp_replysign
#set pgp_replysignencrypted
#set pgp_sign_as=""
#set pgp_sign_micalg="pgp-md5"	# "pgp-md5", "pgp-sha1", "pgp-rmd160"
#set pgp_strict_enc		# use Q-P encoding when needed for PGP
set pgp_verify_sig=yes		# don't automatically verify message signatures
set pgp_timeout=10		# forget passphrase after n sec

#unset pgp_retainable_sigs
#set pgp_show_unusable
#set pgp_entry_format="%4n %t%f %4l/0x%k %-4a %2c %u"
#set pgp_sort_keys="address"
#set pgp_create_traditional
#set forward_decrypt
###############################################################################
#	V I S U A L S
###############################################################################

set help			# show the help lines
set sort=threads		# primary sorting method
set strict_threads		# don't thread by subject
set sort_browser=alpha		# how to sort files in the dir browser
#set sort_aux=reverse-date-received	# how to sort subthreads
#set sort_aux=last-date			# date of the last message in thread
#set arrow_cursor		# use -> instead of hiliting the whole line
#set ascii_chars		# use ASCII instead of ACS chars for threads
set tilde			# virtual lines to pad blank lines in the pager
set smart_wrap			# break lines

### Header fields I don't normally want to see
### this means "ignore all lines by default"
###
ignore *
unignore	from: subject to mail-followup-to \
		date x-mailer

### Specify the order of the headers to appear when displaying a message
###	hdr_order <hdr1> [ <hdr2> ... ]
###
unhdr_order *
hdr_order from reply subject date to

###############################################################################
#	REPLYING & COMPOSING
###############################################################################

unset autoedit			# go to the editor right away when composing
set edit_headers		# let me edit the message header when composing
set reply_to			# always use reply-to if present
set reply_self			# if set reply to recipients than to yourself
#set askbcc			# ask for bcc:
#set askcc			# ask for cc:
#set fast_reply			# skip initial prompts when replying
#set forward_decode		# weed and MIME decode forwaded messages
set forward_decrypt		# decrypt forwarded messages
#unset forward_quote		# forwarded message will be quoted

###############################################################################
#	GENERAL SETUP
###############################################################################

#set attach_split		# if set operate on attachments one by one
#set attach_sep="\n"		# string to be added between attachments when
				# processing multiple tagged entries
set beep			# beep on errors
#set beep_new			# beep on new mail
set mail_check=10		# how often to poll for new mail
set print=ask-yes		# ask me if I really want to print messages
				# how to print things (I like to save trees)
set print_command="a2ps -gEnews -Rbq --border=no --strip-level=1 --columns=1 --left-footer"
set prompt_after=no		# ask me for a command after the external pager exits
set read_inc=25			# show progress when reading a mailbox
set write_inc=25		# show progress while writing mailboxes
set recall=yes			# prompt to recall postponed messages
set postpone=ask-yes		# ask if messages should be postponed
set status_on_top		# some people prefer the status bar on top
set pager_context=3		# no. of lines of context to give when scrolling
set pager_index_lines=5		# how many index lines to show in the pager
set pager_stop			# don't move to the next message on next-page
#set history=20			# number of lines of history to remember
#set pager=less			# some people prefer an external pager
#set pager="builtin"
set quit=yes			# ask-yes, no, ask-no

#set sendmail="/usr/lib/sendmail -oi -oem"	# how to deliver mail
set sendmail="/usr/bin/exim -odqr -oem"
#set sendmail_wait=0		# how long to wait before going to background

#set shell="/bin/zsh"		# program to use for shell escapes
#set use_8bitmime		# enable the -B8BITMIME sendmail flag
set use_domain=no		# don't qualify local addresses with $domain

#unset write_bcc		# write out the bcc header (good for exim-users)


###############################################################################
###############################################################################
set allow_8bit=yes		# never do Q-P encoding on legal 8-bit chars
set nomark_old			# i don't care about whether a message is old
#set mime_forward		# use message/rfc822 type to forward messages
set reverse_name		# use my address as it appears in the message
set reverse_alias		# attempt to look up my names for people
				# I am replying to
#unset pipe_split		# as attach_split, but for pipes
#unset pipe_decode		# as attach_decode, but for pipes
#set pipe_sep="\n"		# as attach_sep, but for pipes

set auto_tag			# always operate on tagged messages
unset fcc_attach		# keep attachments in copies of sent messages?
#set force_name			# fcc by recipient, create if mailbox doesn't exist
set menu_scroll			# no implicit next-page/prev-page
#set metoo			# remove my address when replying
#set resolve			# move to the next message when an action is performed
#set timeout=0			# timeout for prompt in the index menu
#set to_chars=" +TCF"
#set use_from			# always generate the `From:' header field
#set use_mailcap=yes		# always use a mailcap entry when found
#set visual=vim			# editor invoked by ~v in the builtin editor
set wait_key=no			# prompt when a pipe returns normal status

#set escape="~"


# only enable the following IFF you have sendmail 8.8.x or you will not
# be able to send mail!!!
#set dsn_notify='failure,delay'	# when to return an error message
#set dsn_return=hdrs		# what to return in the error message


###############################################################################
#	R E C E V E I N G   M A I L S
###############################################################################
## The following options are only vaild if you have
## compiled in IMAP support

#set imap_user=""
#set imap_pass=""
#set imap_checkinterval=""

## The following options are only available if you have
## compiled in POP support

#unset pop_delete
#set pop_host=""
#set pop_port=110
#set pop_pass=""
#set pop_user=""
#unset pop_last


###############################################################################
#	C O L O R   D E F I N I T I O N S
###############################################################################
## Format:
## color object      foreground   background
## Objects names for mutt 0.90 are:
## attachment, body, bold, error, header, hdrdefault, indicator,
## markers, message, normal, quoted, quoted1, ..., quotedN,
## search, signature, status, subject, tilde, tree, underline.
## Color names:
## white black green magenta blue cyan yellow red default colorx

   color hdrdefault	cyan		black	# 
   color indicator	white		red	# index
   color markers	brightblue	black	# index
   color message	white		black	# index

   color search		white		green

   color status		brightyellow	blue
   color error		brightred	black
   color tilde		green		black
   color tree		brightblue	black

   color normal		white		black	# pager body
   color bold		brightyellow	black
   color underline	yellow		black

   color header		yellow		black  "^date: "
   color header		red		black  "^from: "
   color header		red		black  "^reply-to: "
   color header		white		red    "^newsgroups: "
   color header		cyan		black  "^subject: "
   color header		brightyellow	black  "^to: "
   color header		magenta		black  "^x-mailer: "

#  color body		grey		black
   color body		cyan		black	"(ftp|http)://[^ ]+"
   color body		cyan		black	"(ftp|www).[^ ]+"
   color body		brightred	black	 [-a-z_0-9.]+@[-a-z_0-9.]+
   color body		blue		black	"(^| |\t)[*][a-z][a-z0-9 -]*[a-z0-9:]?[*]( |!|[.]|.$)"
   color body		cyan		black	"(^| |\t)_[a-z][a-z -]*[a-z0-9:]?_( |!|[.]|.$)"

###  Coloring quoted text - coloring only the first four levels:
   color quoted		red		black
   color quoted1	magenta		black
   color quoted2	red		black
   color quoted3	magenta		black

   color attachment	green		black
   color signature	red		black

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



###############################################################################
###############################################################################
# Specify default filename when saving messages
#	save-hook [!]<pattern> <mailbox>
# 	<mailbox> is provided as default when saving messages from <pattern>
# Multiple spool mailboxes
#	mbox-hook [!]<pattern> <mbox-mailbox>
# 	Read mail in <pattern> is moved to <mbox-mailbox> when <pattern> is
# 	closed.
# Change settings based upon message recipient
#	send-hook [!]<pattern> <command>
# 	<command> is executed when sending mail to an address matching <pattern>
# Specify where to save composed messages
#	fcc-hook [!]<pattern> <mailbox>
# 	<pattern> is recipient(s), <mailbox> is where to save a copy
# Change settings based on mailbox
#	folder-hook [!]<pattern> <command>
#	<command> is executed when opening a mailbox matching <pattern>
# Automatically use entries from ~/.mailcap to view these MIME types
#	auto_view <type> [ <type> ... ]

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

#mbox-hook =mutt-users.in =mutt-users
#mbox-hook +TEST +inbox

#send-hook mutt- 'set signature=~/.sigmutt; my_hdr From: Mutt User <user@example.com>'

#fcc-hook joe +joe
#fcc-hook bob +bob

#folder-hook . 'set sort=date-sent'
#folder-hook mutt 'set hdr_format="%4C %Z %02m/%02N %-20.20F (%4l) %s"'
#folder-hook =mutt my_hdr Revolution: \#9 # real comment
#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]*"'


auto_view application/x-gunzip
auto_view application/x-gzip
auto_view text/html

###############################################################################
#	A L I A S E S
###############################################################################
#
# Aliases
#	alias <name> <address> [ , <address> ... ]
# Mailboxes to watch for new mail
#	mailboxes <path1> [ <path2> ... ]
# Identify mailing lists I subscribe to
#	lists <list-name> [ <list-name> ... ]

## For aliases see $alias_file

mailboxes  ! 


###############################################################################
#	S C O R I N G
###############################################################################
#
#	score <pattern> <value>
#
# 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



###############################################################################
# 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	# config commands local to this site
source ~/.muttrc-keys	# all definitions of key-bindings
#source ~/.mail_aliases # put your adress aliases into this file

# EOF
