# $Id: sample.muttrc,v 1.2.4.1 1999/09/03 21:42:16 roessler Exp $

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# ME's personal .muttrc (Mutt 0.92.5)
#
# 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 imap_authenticators="login"
set imap_user="nipsy@bitgnome.net"
set imap_pass="`pass personal/bitgnome.net | grep ^email | cut -d' ' -f2`"
set folder="imaps://mail.bitgnome.net/"
set spoolfile=+INBOX
set ssl_force_tls=yes
set imap_check_subscribed
set imap_condstore
#set imap_deflate
set imap_peek=no
set imap_qresync
set smtp_authenticators="login"
set smtp_pass="`pass personal/bitgnome.net | grep ^email | cut -d' ' -f2`"
set realname="Mark Nipper"
#set spoolfile="imap://localhost/INBOX"
#set folder="imap://localhost/"
#set ssl_starttls=no
#set certificate_file=/etc/ssl/certs/ca-certificates.crt
#set folder=~/Maildir		# where i keep my mailboxes

set abort_nosubject=no
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 ascii_chars			# use ASCII instead of ACS chars for threads
#set askbcc
#set askcc
#set attribution="On %d, %n wrote:"	# how to attribute replies
set autoedit			# go to the editor right away when composing
set auto_tag			# always operate on tagged messages
set beep_new			# bell on new messages
set charset="utf-8"		# character set for your terminal
set send_charset="us-ascii:utf-8"	# character set for outgoing messages
#set check_new			# check for new messages when using maildir/mh
set collapse_unread		# collapse a thread if it contains no new msgs
set noconfirmappend		# don't ask me if i want to append to mailboxes
set confirmcreate=no		# prompt when creating new files
set copy=yes			# always save a copy of outgoing messages
set delete=yes			# purge deleted messages without asking
set edit_headers		# let me edit the message header when composing
set editor="vim -c 'set textwidth=65' -c 'set noautoindent'"	# editor to use when composing messages
#set editor="/usr/bin/nvi"		# editor to use when composing messages
#set editor="/usr/bin/vi"	# editor to use when composing messages
set fast_reply			# skip initial prompts when replying
#set fcc_attach			# keep attachments in copies of sent messages?
#set force_name			# fcc by recipient, create if mailbox doesn't exist
#set forward_decode		# weed and MIME decode forwaded messages
#set forward_format="[%a: %s]"	# subject to use when forwarding messages
#set forward_quote		# quote the header and body of forward msgs
set from="nipsy@bitgnome.net"
#set hdr_format="%4C %Z %{%m/%d} [%2N] %-15.15F (%4c) %s"
set hdr_format="%4C %Z %{%m/%d} %-15.15F (%4c) %s" # format of the index
set hdrs			# include `my_hdr' lines in outgoing messages
#set header			# include message header when replying
set help			# show the help lines
#set history=20			# number of lines of history to remember
#set hostname="alphaomega.dyndns.org"# my DNS domain
set imap_idle			# enable IMAP IDLE extension
set implicit_autoview
set include			# always include messages when replying
set indent_string="> "		# how to quote replied text
#set index_format="%4C %Z %{%b %d} %-15.15L (%?l?%4l&%4c?) %s"
set index_format="%5C %Z %D %-60.60f (%?l?%4l&%4c?) %s"
#set index_format="%4C %Z %D %-15.15F [%4c] %s"
set ispell="aspell -c --mode=email"
set date_format="%Y %b %d"
#set locale="C"			# locale to use for printing time
set mailcap_path="~/.mailcap:/etc/mailcap"
set markers=no
set nomark_old			# i don't care about whether a message is old
set mail_check=10		# how often to poll for new mail
set mailcap_sanitize=yes
set mbox="!"	# where to store read messages
set mbox_type=mbox
#set menu_scroll		# no implicit next-page/prev-page
#set metoo			# remove my address when replying
set mime_forward		# use message/rfc822 type to forward messages
set move=no			# don't ask about moving messages, just do it
#set pager=less			# some people prefer an external pager
set pager_context=0		# 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=6		# how many index lines to show in the pager
#set pager_stop			# don't move to the next message on next-page
#set pgp_strict_enc		# use Q-P encoding when needed for PGP
set postponed==postponed	# mailbox to store postponed messages in
#set post_indent_string='---end quoted text---'
#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 noprompt_after	# ask me for a command after the external pager exits
set query_command="~/bin/mutt_ldap '%s'"	# external ldap query command
#set quote_regexp="^ *[a-zA-Z]*[>:#}]"	# how to catch quoted text
set read_inc=10			# show progress when reading a mailbox
set recall=no			# prompt to recall postponed messages
set record==sent		# default location to save outgoing mail
set reply_to			# always use reply-to if present
#set reply_regexp="^(re:[ \t]*)+"# how to identify replies in the subject:
#set resolve		# move to the next message when an action is performed
#set reverse_alias		# attempt to look up my names for people
#set reverse_name		# use my address as it appears in the message
				# i am replying to
set save_empty			# remove files when no messages are left
#set save_name			# save outgoing messages by recipient, if the
#set sendmail="/usr/sbin/exim4 -oi -oem -fnipsy@bitgnome.net"   # how to deliver mail
#set sendmail="/usr/bin/msmtp -d"	# how to deliver mail
set smtp_url="smtp://nipsy@bitgnome.net@mail.bitgnome.net:587/"
set shell='/bin/zsh'		# program to use for shell escapes
set sig_dashes=yes
set signature='~/bin/signature -o|'	# file which contains my signature

# 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		# primary sorting method
set sort_aux=last-date		# how to sort subthreads
set sort_browser=reverse-date	# how to sort files in the dir browser
set duplicate_threads=yes
#set spoolfile="/home/nipsy/Maildir/"	# where my new mail is located
#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 strict_threads		# don't thread by subject
set tilde			# virtual lines to pad blank lines in the pager
#set timeout=10			# timeout for prompt in the index menu
set tmpdir='/tmp'		# where to store temp files
#set to_chars=" +TCF"
#set use_8bitmime		# enable the -B8BITMIME sendmail flag
set nouse_domain		# don't qualify local addresses with $domain
set use_from=yes		# always generate the `From:' header field
#set pgp_verify_sig=no		# don't automatically verify message signatures
#set visual=vim			# editor invoked by ~v in the builtin editor
set nowait_key			# prompt when a pipe returns normal status
#set wrapmargin=1
set write_inc=10		# show progress while writing mailboxes
set header_cache="/home/nipsy/.mutt/hcache"     # enable IMAP header cache
#set header_cache_pagesize=16384                # set cache database size

# 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

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

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

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

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

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

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

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

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

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

#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]*"'

#folder-hook . source ~/.mutt/smtp-default
#folder-hook . source ~/.mutt/aliases
#folder-hook =utexas source ~/.mutt/smtp-ut
#folder-hook =utexas source ~/.mutt/aliases-ut

#folder-hook . source ~/.mutt/editor-default
#folder-hook =INBOX/tamu/cispc source ~/.mutt/editor-cispc

folder-hook . "macro index S '<bounce-message>spam@king.bitgnome.net\ry<delete-message>'"
folder-hook . "macro pager S '<bounce-message>spam@king.bitgnome.net\ry<delete-message>'"
folder-hook . "macro index H '<bounce-message>ham@king.bitgnome.net\ry'"
folder-hook . "macro pager H '<bounce-message>ham@king.bitgnome.net\ry'"
folder-hook =spam "macro index S '<tag-pattern>.*\r<tag-prefix><bounce-message>spam@king.bitgnome.net\ry<tag-prefix><delete-message>'"
#folder-hook =utexas "macro index S ':source ~/.mutt/smtp-default\r<bounce-message>spam@king.bitgnome.net\ry<delete-message>:source ~/.mutt/smtp-ut\r'"
#folder-hook =utexas "macro pager S ':source ~/.mutt/smtp-default\r<bounce-message>spam@king.bitgnome.net\ry<delete-message>:source ~/.mutt/smtp-ut\r'"
#folder-hook =utexas "macro index H ':source ~/.mutt/smtp-default\r<bounce-message>ham@king.bitgnome.net\ry:source ~/.mutt/smtp-ut\r'"
#folder-hook =utexas "macro pager H ':source ~/.mutt/smtp-default\r<bounce-message>ham@king.bitgnome.net\ry:source ~/.mutt/smtp-ut\r'"

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

#unhdr_order *				# forget the previous settings
#hdr_order date from subject to cc

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# Identify mailing lists I subscribe to
#
#	lists <list-name> [ <list-name> ... ]

#lists mutt-dev mutt-users

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

#auto_view application/x-gunzip
#auto_view application/x-gzip
auto_view text/html
auto_view application/msword
auto_view text/richtext
auto_view application/pdf

# specify order in which to view MIME types above
alternative_order text/plain text/enriched text/html

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# Scoring
#
#	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 ~/.mutt/aliases # user-defined aliases
source ~/.mutt/colors  # color definitions
#source ~/.mutt/folders # incoming mail folders to watch
#source ~/.mutt/gnupg   # config commands for PGP support
source ~/.mutt/headers # header behavior and user-defined mail headers
source ~/.mutt/keys    # key bindings
#source ~/.mutt/debian  # defaults copied from a Debian system

# EOF
