# -*- ~/.mutt/main -*-
#

# Allows escape sequences:
#     (\n = newline, \r = carriage-return, \t = tab, \f = formfeed)
#
# %a Author address	%b original mbox	%B destination list or mbox
# %c bytes in message	%C Message number
# %d date and time in senders timezone ($date_format)
# %D date and time in local timezone ($date_format)
# %e curr. msg no in thread	%E number of msgs in curr. thread
# %f address+real name	%F address+realname (unless self)
# %i Message-ID		%l number of lines	%L list-from function
# %m # of msg in mbox	%M number of hidden messages in collapsed thread
# %n author real name	%N score		%s subject of msg
# %S status of message (N/D/d/!/*/r)
# %t `to:' field	%T char from tochars	%u login name of author
# %v author's firstname	%y X-Label		%Y X-Label, if changed
# %Z message status flags
# %>X	  right justify the rest of the string and pad with character "X"
# %|X	  pad to the end of the line with character "X"
# %{<s>} sent time+date in senders timezone  (<s> is an strftime(3) expression)
# %[<s>] sent time+date in local timezone    (<s> is an strftime(3) expression)
# %(<s>) receive time+date in local timezone (<s> is an strftime(3) expression)
# %<<s>> current time in local timezone      (<s> is an strftime(3) expression)
#	 if first char in <s> is "!", do not use locale.
#
#
# Folder format
#
# %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"
#
#
# 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>?
#
#
# 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)
#
#
# attach_format
#
# (controls the look of the compose and attach menu)
# %c = Content-Type	%C = Charset
# %d = description	%D = deleted flag
# %e = MIME content-transfer-encoding		%f = filename
# %I = disposition (I=inline, A=attachment)
# %m = major MIME type	%M = MIME subtype	%n = attachment number
# %s = size		%t = tagged flag	%T = tree
# %u = unlink
# %>X = right justify and pad with "X"	 %|X = pad with "X" to end of line
#
#
# compose_format
#
# (Controls the status line of the compose menu)
# %a = number of attachments	%h = local hostname
# %l = approx. size of msg	%v = Mutt version
#
#
#
# Mixmaster format (only when --with-mixmaster)
#
# %n = number	%c = capabilities	%s = short name		%a = address
#


unset 	abort_nosubject				# allow empty subject
unset 	abort_unmodified			# send menu after not editing
set 	alias_file="~/.mutt/aliases"		# set alias file
set 	alias_format="%4n %2f %t %-12a  %r"	# format of data displayed for the alias menu
set 	allow_8bit				# Don't do any Quoted-Printable encoding on 8-bit data!
set 	allow_ansi				# allow ANSI color codes in messages.
unset 	askbcc					# don't ask for bcc value
unset 	askcc					# don't ask for cc value
set 	alternates=(wagner|devnull|a\.wagner|angelus\.novus)@(commontology|stud\.uni-frankfurt|t-online).de
unset 	arrow_cursor				# don't use "->" as cursor (which would be faster on slow networks).
set 	ascii_chars				# (don't) use ascii chars in threadmarks
set 	attach_format= \
	"%u%D%I %t%4n %T%.50d%> [%.7m/%.10M, %.6e%?C?, %C?, %s] "	# look of the compose and attach menu
set 	attach_sep="\n"				# Separator to add between tagged attachements
set 	attribution="* %n <%a> wrote [%(%y%m%d %H:%M)]:"	# how to introduce quotes
set 	autoedit  				# call editor without prompting for To: and Subject:
set 	auto_tag				# if something is tagged, run command on tagged items

unset 	beep					# We don't need no beepin' software (errors etc.)
set 	beep_new				# but beep when new mail arrives
unset	bounce_delivered			# don't include Delivered-To headers when bouncing messages(Postfix)

set 	charset="iso-8859-15"			# Charset of Terminal (for display)
set 	check_new				# search for new messages in maildir/MH folders.
unset 	collapse_unread				# don't collapse threads with unread msgs.
set 	compose_format= \
 	"-- %v-- Compose  [Approximate Message Size: %l   Attachments: %a]%>-"	# format the status line of the compose menu
unset 	confirmappend				# don't ask me if i want to append to mailboxes
set 	copy=yes				# don't ask me if I want to save a copy of my outgoing messages.

set 	date_format= \
	"%d.%m.%Y %H:%M:%S %z"
#	"%Y.%m.%d %H:%M:%S %z"			# dates ISO-8601 format
# 	"!%a %b %d, %Y at %I:%M:%S%p %Z"	# Monday Dec 06, 1997 at 08:30:42pm CET
set 	delete=yes				# don't aks about deleting messages, just do it
set 	delete_untag				# untag messages when marking them for deletion
set 	display_filter='mutt.to-filter.pl | mutt.display-filter.pl'	
						# shorten multi-line To/CC Fields
						# and use Hugo's configurable Filter
set 	duplicate_threads			# thread messages with same message-id together

set 	edit_hdrs				# let me edit those headers!
# i use vim as editor, sigrot to rotate .sig lines
# vim's options mean: goto line 5 (Subject) and use the mail syntax descriptions for highlighting:
set 	editor="sigrot;vim -u ~/.vimrc +5 -c ':source /usr/share/vim/vim61/syntax/mail.vim'"
set 	envelope_from				# spoof mail from address

# set 	fast_reply				# don't ask questions on replies - irrelevant when autoedit
set 	fcc_attach				# store attachments too when doing a Fcc
set 	fcc_clear				# Keep fcc's clear of sigs and encryption
set 	folder=~/Mail				# home of mail folders
# file browser menu
set 	folder_format= \
 	"%3C %t%N %-8.8u %d %10s  %f"
# 	"%3C %t%N %F %-8.8u %-8.8g %8s %d %f"
set 	followup_to				# Add Mail-Followup-To header when posting to lists.
set 	forw_format="Fwd: [%a] %s"		# Fwd: [sender] subject
set 	from="A.Wagner@stud.uni-frankfurt.de"	# default from address

set	hdrs					# use those my_headers
unset	header					# include header of the mail i'm replying to
set 	hidden_host				# cloak system name
set 	honor_followup_to=yes			# (don't ask whether to) honor Mail-Followup-To header.
set 	hostname=hermes.commontology.de

set 	ignore_list_reply_to  			# ignore the "Reply-To" lines which point
						# back to the mailing list - YES!
unset 	implicit_autoview			# don't use autoview, if just a "copiousoutput" is in mailcap.
set 	include					# include original msg in reply
set 	indent_string="> "			# Quoting mails with this string.
# index format string
set 	index_format= \
 	"%4C %Z %[!%d.%m.%Y] %-23.23F (%6l) %2M  %s"
# 	"%4C %Z %[!%Y.%m.%d] %-23.23F (%6l)  %s"
# 	"%4C %Z %{%b %d} %-15.15n (%4l)  %s"
# 	"%Z %{%D} %2N %4l %-20.20a %s"
# 	"%4C %Z %[!%d.%m.%y] %-15.15F (%?M?C%3M&%4l?) %s"
set	ispell="/usr/bin/ispell -d deutsch -T latin15"

set 	locale="de_DE.8859-15"		# locale settings (See send-hook section for changes!)

set 	mailcap_path="~/.mutt/mailcap" 	# use local mailcap only for mutt
set	mailcap_sanitize		# expand securely in mailcap
set 	mail_check=30			# how often to poll for new mail in seconds
unset 	mark_old			# don't mark unread messages as old
set 	markers				# put a '+' at the beginning of wrapped lines.
# set 	mask=".*"			# Show these files in the file browser
set 	mask="^[^\.].*|^(\.\.)$"	# Show anything (including the parent dir) except for hidden things
# set	mbox=/var/mail/wagner
set	menu_scroll			# don't page menus
set 	message_format="%-.16n: %s"	# string for message/rfc822 in attachment list
unset	metoo				# remove my address recipients when replying
set 	mime_forward=ask-no		# Forward message as MIME attachment instead of inline quote?
# set 	mime_forward_decode		# decode fwd to text/plain
set 	mime_forward_rest		# forward the rest of mime msg
# set 	mix_entry_format="%4n %c %-16s %a"	# Format of mixmaster list
# set 	mixmaster="mixmaster"		# Mixmaster binary
unset 	move				# hold messages in $MAIL, don't move it to $mbox

# set   pager=less -aCMsei  		# I recommend "less" as the external pager.
set 	pager=builtin			# internal pager
set 	pager_context=1      		# number of lines that overlap on paging
set 	pager_format= \
	"%S [%C/%T] %n (%l) %s"      	# Sven's favourite
# 	"[%4C/%4m] (%S%Z) %%=%N $i %> [%lL]"
# 	"-%Z- %C/%m [%[%H:%M]] %-17.17n   %s"
set	pager_index_lines=6		# mini-index on pager top
set	pager_stop			# don't auto-go to next msg
unset 	pipe_decode			# Weed headers and PGP-decode message before piping
set 	pipe_split			# split tagged messages (or don't) when using "|"
set 	postponed=+postponed		# mailbox to store postponed messages in
set 	postpone=no			# don't ask if I want to postpone...
set 	print=ask-no
set 	print_split
set	print_command= \
"mutt.to-filter.pl | mutt.display-filter.pl | fmt --prefix='>' -s -w80 | fmt -s -w80 | mutt.print.pl"
# "mutt.to-filter.pl | mutt.display-filter.pl | fmt --prefix='>' -s -w80 | fmt -s -w80 | a2ps -b"" -1 -R --pretty-print=mail"
# "a2ps -1 -B -d --pretty-print=mail"
# "echo Nix printi printi!"
set 	prompt_after

set	query_command="mutt.addy.query.pl '%s'"	# browse for addy
# set 	quit=ask-yes			# don't simply die on 'q'
# for color quotes
set 	quote_regexp= \
 	"^( {0,5}[>|:%]| {0,5}[a-z0-9]+[>|]+)+"
# 	"^ *[-=]*[>:|][>:|]*[ 	A-Za-z0-9]"
# 	"^([A-Za-z ]+>|[]>:|}-][]>:|}-]*)"

# set 	read_inc=10
set 	read_inc=64			# read progress step 64
set 	realname="Andreas Wagner"
set	recall=ask-no			# recall postponed message?
set 	record=+outbox			# default location to save outgoing mail
set 	reply_regexp= \
 	"^((re(\\^[0-9])? ?:|a(nt)?w(ort)?:|wg:|\\(fw(d)?\\))[ \t]*)*"
# 	"^((aw|antw.?|antwort|re|r e|r?f|si|sv):[ \t]*)*"
set 	reply_to=ask-yes
set 	reverse_alias
set 	reverse_name			# use my recipientname as sendername

set 	save_empty					# keep mailbox when last message is removed.
set 	send_charset="iso-8859-1:us-ascii:utf-8"  	# Charsets for outgoing messages.
#set 	sendmail="/usr/local/bin/tmda-sendmail"		# use tmda-sendmail to deliver messages
set 	sendmail_wait=2					# (don't) wait around for sendmail
set 	sig_dashes = yes
set 	signature = "~/.signature"
set 	simple_search="~f %s | ~C %s | ~s %s"		# default pattern (Fr|To|Cc|Su)
set 	smart_wrap					# wrap long lines at word boundary.
set 	smileys="(>From )|(:[-^]?[][)(><}{|/DP])"	# Special chars, which are not quote regexps, but :-)
set 	sort=threads					# thread messages
set 	sort_aux=last-date				# sorting the threads
set 	sort_alias=alias				# how to sort aliases
set 	sort_browser=alpha				# how to sort in the file browser
set 	status_chars="-*%XA"				# status of mbox
set 	status_format= \
	"%r %f: [%?M?%M/?%m msgs] %?u?%u unread, ?%?p?%p postponed, ?%?t?%t +tagged, ?%?d?%d deleted, ?%b folders to go. %> (%s/%S) %r"
#	"%r %v [%?M?%M/?%m] %?n?%n new, ?%?p?%p postponed, ?%?t?%t +tagged, ?%?d?%d deleted, ?(%h:%f) %?b?%b folders to go.?%> %r"
# 	"[%r|%f|%b] #%M/%m=%L/%l [%nN %dD %tT] (%s.%S) %> (%P) [WM]"
# 	"---%h:%f [%?M of ?%m msgs, %?n new, ?%?t tagged, ?%l bytes]---(%s)%|-"
# 	"-%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-"
unset 	strict_threads					# Let's have some fuzzy threading

set 	tilde				# pad empty lines like vi
# set 	to_chars="b .c>"
set 	to_chars="-T+CF "		# no to me, only to me, not only to me, Cc: to me,
					# from me, to subscribed mailinglist.

# set 	user_agent			# let them know about mutt (but i have my_header)
set 	wait_key			# Only "press a key" if return value non-zero - i need this for some gpg-verification
set 	weed				# weed headers, when forwarding with forward_decode
set	wrap_search			# restart search from the beginning
set 	write_bcc			# Bcc header in file to send
# set 	write_inc=10
set	write_inc=128			# write progress step 128

source ~/.mutt/aliases          # read in the aliases
source ~/.mutt/auto_views       # which attachments to open automatically
source ~/.mutt/keybind          # my keyboard bindings
source ~/.mutt/colours          # my colour scheme
source ~/.mutt/gpgrc            # read in gpg settings
source ~/.mutt/headers          # read in which headers (not) to display
source ~/.mutt/mailboxes        # read in list of available and watched mailboxes
source ~/.mutt/non-standard     # read in settings of non-standard mutt features, p.ex. compression
source ~/.mutt/scores           # read in scoring metrics
source ~/.mutt/subscriptions    # read in which mailing lists I'm subscribed to
source ~/.mutt/fcc-hooks
source ~/.mutt/folder-hooks     # read in what to do based on where you go
source ~/.mutt/save-hooks
source ~/.mutt/send-hooks
source ~/.mutt/defaults         # read in default folder-hook settings

alternative_order text/plain text/enriched text/html	# Show the "text/plain" part *before*
							# the "text/html" part
# push <collapse-all>					# collapse all read threads
push <show-version>					# get mutt to display its version on startup