##################################################
# ~/.mutt/muttrc
# $Id: muttrc 2 2005-03-29 07:22:59Z pfeifer $
# Hagen Paul Pfeifer - hagen@jauu.net
# http://www.jauu.net
#
##################################################

# a big part of this content is from sven guckes and dotfiles from guys all
# over the globe. So look for further information at guckes.net or something
# like dotfiles.org(?) ...

reset all

# common stuff goes here
source ~/.mutt/common

# gnupg setting
source ~/.mutt/gpg

# communication data (imap, sendmail, ...) goes here
source ~/.mutt/communicate

# keybindings
source ~/.mutt/bind

# Persönliches Adressbuch 
source ~/.mutt/aliases

# Persönliche save-, send-, mbox- hooks etc.  
source ~/.mutt/personal

# Persöhnliches Coloring
source ~/.mutt/color

# folder hooks
source ~/.mutt/hooks

# mailling lists
source ~/.mutt/lists

# vim:set ts=2 ft=muttrc:
##################################################
# ~/.mutt/common
# $Id: common 2 2005-03-29 07:22:59Z pfeifer $
# Hagen Paul Pfeifer - hagen@jauu.net
# http://www.jauu.net
#
##################################################

# i wan't to edit my headers
set edit_hdrs
# it is ok if there is no subject line ;-(
set abort_nosubject=no
# should i exit if I doesn't change anything in the editor?
set abort_unmodified=ask-yes
# aliases goer here
set alias_file=~/.mutt/aliases
# %a alias name %n index number %r address %t tag-character 
set alias_format="%3n %t %-12a  %r"
# translate 8bit => 7bit
unset allow_8bit
# mta internals
set use_8bitmime
# invertert title
unset arrow_cursor
# should I use ascii characters for arrows (set for older terminals)
unset ascii_chars
# doesn't ask for to und subject line
set autoedit
# !CC
unset askcc
# !BCC
unset askbcc
# attach format
set attach_format=" %u%D%t%2n %T%.40d%> [%.7m/%.10M, %.6e, %s] "
# seperator for attachments
set attach_sep="\n"
# splitt attachments
set attach_split
# attribution
set attribution="* %n \| %{%Y-%m-%d %H:%M:%S [%Z]}:\n"
# command for tagges massage
unset auto_tag
# I hate bell's (cause I live near to a church :-)
unset beep
# print bell for new incoming message
set beep_new
# charset
set charset=iso-8859-1
# charset for transmitting
set send_charset=iso-8859-1
# check for new e-mail
set check_new
# collapse unread mail thread
unset collapse_unread
# ask for append?
unset confirmappend
# ask whenn create a new folder
set confirmcreate
# creat a copy for new mail
set copy=yes
# date format 
set date_format="!%a %b %d, %Y at %I:%M:%S%p %Z"
# ask when delete mail's
set delete=ask-yes
# show header in editor 
set edit_headers
# of course: VIM
set editor="vim -u ~/.mutt/vimrc -c '+5'"
# ask for subject, to etc. when reply? NO!                        
set fast_reply
# don't save attachment when send a mail?
unset fcc_attach
# folder format
set folder_format="%N %F %2l %-8.8u %-8.8g %8s %d %f"
# insert a followup header 
set followup_to
# create folder for outgoing mail with login name 
unset force_name
# decode massage MIME when forwarding 
set forward_decode
# decode pgp crypt mails when forwarding 
set forward_decrypt
# how looks a forward format? 
set forward_format="(fwd) %s"
# quote forward message 
unset forward_quote
# show some more header information'a
set hdrs
# quote the complette header when reply
unset header
# no help line
unset help
# history-buffers
set history=200
# ignore reply-to if you post to a list
set ignore_list_reply_to
# use autoview when "copiousoutput" in mailcap set?
unset implicit_autoview
auto_view text/x-vcard
auto_view text/html
alternative_order text/enriched text/plain text/html
# when reply, quote original message
set include=ask-yes
# sign for quoting text
set indent_string=">"
# format of indexline
set index_format="%4C %4Z %[%d.%m.%y %H:%M]  %-17.17L (%4c) %?M?(#%03M)&(%4l)? %s"
# format statusline
set status_format="%v: %f (%s) [%M/%m] [N=%n,*=%t,post=%p,new=%b]"
# locale
set locale="C"
# where can I find a mailcap file?
set mailcap_path="~/.mutt/mailcap"
# remove ugly chars from mailcap % expands.
set mailcap_sanitize
# show all files
set mask="."
# dislpay own mailaddress for lists
unset metoo
# bottom of menu, ...and now?
set menu_scroll
# interpret meta-keys
unset meta_key
# forward as mime or as text format?
set mime_forward=yes
# decode mime mail for forward
unset mime_forward_decode
# string for message/rfc822 in attachment list
set message_format="%-.16n: %s"

####
# pager stuff


# use builtin pager
set pager=builtin
# number of lines of context when display
set pager_context=0
# statusline for pager?
set pager_format="-%S- %C/%m [%[%H:%M]] %-17.17n   %s"
# Message-Index lines
set pager_index_lines=7
# should I wrap after an email
unset pager_stop
# Footer
set post_indent_string=""



# postpone message?
set postpone=ask-no
# should I ask before I quit?
set quit=ask-yes
# display after 10 new mails a change
set read_inc=10
# don't ask for a copy when I write a mail
set recall=no
# recognize reply messages when threading and replying
set reply_regexp="^((re(\\^[0-9])? ?:|a(nt)?w(ort)?:|\\(fwd\\))[ \t]+)*"
# I resolve email addresses to names
set reverse_alias
# reply messages is built using the address where you received
set reverse_name
# don't delete folders!
unset save_empty

# simple search in ...
set simple_search="~f %s | ~C %s | ~s %s"
# wrap words at word boundaries
set smart_wrap
# how to identify qoutes?
set quote_regexp="^( {0,4}[>|:%]| {0,4}[a-z0-9]+[>|]+)+"
# how to identify smilies?
set smileys="(>From )|(:[-^]?[][)(><}{|/DP])"
# default sort method
set sort=threads
# how to sort in relation to other threads
set sort_aux= date-sent
# sort aliases by name
set sort_alias=alias
# how to sort entries in the file browser
set sort_browser=alpha
# don't display statusbar on top
unset status_on_top
# be liberal!
unset strict_threads
# I use job controlling very often (^-Z) ...
set suspend
# don't search in attachment when defined a search with ~b
unset thorough_search
# how oftern should I check for new mail?
set timeout=300
# where is mutt's place for temporaer files?
set tmpdir="/tmp"
# Controls the character used to indicate mail addressed to you
set to_chars="X+TCF"
# Controls whether Mutt will ask you to press a key after command
unset wait_key
# a search look for all mails in folder
set wrap_search
# indicate progress while writting an message
set write_inc=1
# my mta is exim so I don't won't this option
unset write_bcc
# add the local domainname for every address whitout a domainname
set use_domain
# how to invoke spell-checking
set ispell="/usr/bin/aspell --mode=email check"


# format option to display in mailheader
ignore *
unignore from date subject to cc reply-to:
unignore organization organisation
unignore user-agent: x-agent: x-mailer: x-newsreader: x-mailing-list:

# Reihenfolge
unhdr_order *
hdr_order From Newsgroups: From: Reply-To: To: Cc: Subject: Date: Message-Id: X-Mailer: X-Newsreader: X-Agent:

# vim:set ts=2 ft=muttrc:
##################################################
# ~/.mutt/bind
# $Id: bind 2 2005-03-29 07:22:59Z pfeifer $
# Hagen Paul Pfeifer - hagen@jauu.net
# http://www.jauu.net
#
##################################################


########################
# INDEX

macro index \eb |urlview\n "Extract a URL, and queue for later download"
macro pager \eb |urlview\n "Extract a URL, and queue for later download"

bind editor \C?          backspace
bind index   \t          next-unread
bind index  ,\t          previous-unread

bind index zt current-top
bind index zz current-middle
bind index zb current-bottom

bind index <pagedown>   next-page
bind index <pageup>     previous-page

bind index \Cb       previous-page
bind index \Cv       next-page

bind index <         previous-page
bind index >         next-page
bind index \Cx       sync-mailbox

bind index +         next-page
bind index -         previous-page

macro index ",c"     "c=received"

macro index ,l      "l~N ! ~p\n"
macro index ,n      "l~N\n"
macro index ,a      ":set attribution='* %n (%a) [%(%y%m%d %H:%M)]:'"
macro index ,A      ":set attribution='\\n\\tSubject: %s\\n\\tDate: \
                     %d\\n\\nTime to reply!\\n\\nQuoting %n (%a):'"

macro index \er     ":source ~/.mutt/muttrc\n"

macro compose ,f    ":toggle fcc_attach\r:set ?fcc_attach\r"

########################
# PAGER

bind pager   \t          next-new
bind pager   \t          next-unread
bind pager  ,\t          previous-unread

bind pager \Cu half-up
bind pager \Cd half-down

bind pager \Cm next-line
bind pager \Ce next-line
bind pager \Cy previous-line
bind pager +   next-line
bind pager -   previous-line

bind pager ' ' next-page
bind pager \Cf next-page
bind pager \Cn next-page

bind pager -   previous-page
bind pager \Cb previous-page
bind pager \Cn half-down
bind pager \Cp half-up

bind pager t   top
bind pager ^   top

bind pager G   bottom
bind pager $   bottom

bind pager /   search

bind pager n   next-undeleted

bind pager p   previous-undeleted
bind pager P   print-message

bind pager R   list-reply

bind pager ,b   bounce-message
bind pager ,f   forward-message
bind pager ,g   group-reply
bind pager ,m   mail
bind pager ,L   list-reply
bind pager ,n   reply
bind pager ,r   reply
bind pager ,a   reply

bind pager ,j   next-undeleted
bind pager ,k   previous-undeleted

bind pager backspace    previous-line
bind pager b            previous-page
bind pager f            next-page
bind pager g            top
bind pager j            next-line
bind pager k            previous-line
bind pager m            noop
bind pager L            noop
bind pager r            noop

bind pager :  enter-command

# vim:set ts=2 ft=muttrc:
##################################################
# ~/.mutt/color
# $Id: color 2 2005-03-29 07:22:59Z pfeifer $
# Hagen Paul Pfeifer - hagen@jauu.net
# http://www.jauu.net
#
##################################################


########################
# COMMON STUFF

color error      red            default
color normal     white          default
color indicator  brightyellow   red
color tree       red            default
color status     brightgreen    blue
color message    red            default
color signature  red            default

color attachment brightyellow   red
color search     brightyellow   red
color tilde      brightmagenta  default
color markers    red            default
color hdrdefault blue           default
color bold       red            default
color underline  green          default
color quoted     blue           default
color quoted1    magenta        default
color quoted2    red            default
color quoted3    green          default
color quoted4    cyan           default
color quoted5    blue           default
color quoted6    magenta        default
color quoted7    red            default
color quoted8    green          default
color quoted9    cyan           default

##################################################
# index stuff

color index      blue           default       ~Q
color index      black          brightyellow  ~F
color index      red            default       ~N
color index      blue           yellow        ~T
color index      blue           default       ~D
color index      brightgreen    white        "~N (~x jauu\.net | ~h \"^In-[Rr]eply-[Tt]o:\
                                                 .*jauu\.net\")"

##################################################
# header stuff

color header       white        red        "^(from|subject):"
color header       white        red        "date: "
color header       white        red        "from: "
color header       green        default    "from "
color header       green        default    "sender: "
color header       red          default    "organi[sz]ation: "
color header       magenta      default    "user-agent: "
color header       red          default    "x-editor: "
color header       red          default    "x-mailer: "
color header       magenta      default    "x-posting-agent: "

color header       yellow       default    "importance: "
color header       blue         default    "importance: normal"
color header       red          white      "priority: high"
color header       red          white      "priority: urgent"
color header       blue         default    "priority: normal"
color header       yellow       default    "x-priority: "
color header       yellow       default    "X-MSMail-Priority: "

color header       black        cyan       "subject: "



##################################################
# body stuff

color body      brightyellow       default   "([;.]-[)/(|])|(:))"

color body      cyan               default  \
    "((ftp|http|https)://|(file|mailto|news):|www\\.)[-a-z0-9_.:]* \
    [a-z0-9](/[^][{} \t\n\r\"<>()]*[^][{} \t\n\r\"<>().,:!])?/?"

color body       cyan           default  "[-a-z_0-9.+]+@[-a-z_0-9.]+"
color body       red            default  "(^| )\\*[-a-z0-9äöüß*]+\\*[,.?]?[ \n]"
color body       green          default  "(^| )_[-a-z0-9äöüß_]+_[,.?]?[ \n]"
color body      red          white   "[!?]{3,}"
color body      yellow       default   "200[0-9]"

color body      black  green \
    "(tele)?(cell|fax|fon|phone|tel)[.: ]+[+]?[- 0-9/()]{4,}[0-9]"

color body      brightyellow red \
    "1-[0-9]{3}[- ][-0-9]+ +ext.? [0-9]+"

color body      white        red \
    "[-0-9]{9,12}[0-9X]"

color body      white        red \
    "\(19|20\)?[0-9][0-9][/-](0[0-9]|1[012])[/-]([012][0-9]|3[01])"

color body      blue         green \
    "(0?[1-9]|[12][0-9]|3[012])[.] ?([1-9]|1[012])[.] ?(19|20)?([0-9][0-9])?"

color body      white        red \
    "((0?[1-9]|[12][0-9]|3[012])[.]? ?)?\
    \\<(Jan(uar)?|Feb(ruar)?|M(ä|ae)rz|Apr(il)?|Mai|Juni?|Juli?|Aug(ust)?|\
    Sept(ember)?|Okt(ober)?|Nov(ember)?|Dez(ember)?)\\> *\
    ((19|20)?[0-9][0-9])?"

color body      white        red \
"\\<(Jan(uar)?|Feb(ruar)?|M(ä|ae)rz|Apr(il)?|Mai|Juni?|Juli?|Aug(ust)?|\
Sept(ember)?|Okt(ober)?|Nov(ember)?|Dez(ember)?)\\>\
( *[0 ]?[1-9]|[12][0-9]|3[012])?(st|nd|rd|th)? *((19|20)?[0-9][0-9])?"

color body      white        red \
"(0?[1-9]|[12][0-9]|3[012]?[.]? ?)?\
\\<(Jan(uar)?|Feb(ruar)?|M(ä|ae)rz|Apr(il)?|Mai|Juni?|Juli?|Aug(ust)?|\
Sept(ember)?|Okt(ober)?|Nov(ember)?|Dez(ember)?)\\>\
( *(19|20)?[0-9][0-9])?"

color body      blue         green \
"([01]?[0-9]|2[0-4])([.:][0-5][0-9])?([.:][0-5][0-9])? ?(am|pm)?\
(h|Uhr)( *[cs][.]t[.])?"

color body      blue         green \
    "[012][0-9][.:][0-5][0-9](am|pm)? ?- ?([012][0-9][.:][0-5][0-9](am|pm)?)?"


color body      blue         green \
    '\<(Montag|Dienstag|Mittwoch|Donnerstag|Freitag|Sonnabend|Samstag|Sonntag)\>'

color body blue  green \
    '\<(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday)\>'

color body      blue         green "\\<(Mon|Tue|Wed|Thu|Fri|Sat|Sun)\\>"

color body      white        blue  "192.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}"

color body      white        red \
"(linux *)?(debian|mandrake|redhat|suse) *(linux)? *[0-9][.][0-9]"

color body    white        red "(freebsd|netbsd|openbsd|solaris)"

color  body     blue         yellow \
  '\<win(do(ze|of)|zigweich)[- ]?(3[.]11|95|98|9x|nt|2k|2000|me|xp)?\>'
color  body     blue         yellow \
   '\<windows[- ]?(3[.]11|95|98|9x|nt|2k|2000|me|xp)\>'

color body      red          default '\*?\<xp\>\*?'

color body      white        red \
'\<(aachen|augsburg|bad.salzuflen|bad.tölz|baden-baden|bamberg|bayreuth|\
bergheim|bergisch.gladbach|berlin|bielefeld|bocholt|bonn|braunschweig|\
bremen|bremerhaven|cottbus|düren|düsseldorf|darmstadt|detmold|dresden|\
elmshorn|eschweiler|esslingen.am.neckar|euskirchen|fürth|frankfurt|\
freiburg|gütersloh|güttingen|garmisch-partenkirchen|halle|hamburg|\
hannover|heidelberg|heilbronn|herford|hilden|hildesheim|iserlohn|\
köln|karlsruhe|kassel|kerpen|kiel|konstanz|krefeld|lübeck|lüdenscheid|\
leipzig|leverkusen|lippstadt|ludwigsburg|ludwigshafen|münchen|\
mönchengladbach|münster|magdeburg|mainz|mannheim|marburg|minden|\
nürnberg|neumünster|neuss|neustadt|norderstedt|offenbach|oldenburg|\
paderborn|passau|pforzheim|pinneberg|pulheim|ratingen|regensburg|\
remscheid|rheine|rostock|ruhrgebiet|saarbrücken|siegen|solingen|\
st..augustin|stuttgart|troisdorf|viersen|villingen-schwenningen|\
würzburg|waiblingen|wiesbaden|wuppertal)\>'

color body       white        blue \
'\<(bayern|baden-w(ü|ue)rttemberg|berlin|bremen|brandenburg|hamburg|hessen|\
mecklenburg-vorpommern|niedersachsen|nordrhein-westfalen|rheinland-pfalz|\
saarland|sachsen|sachsen-anhalt|schleswig-holstein|th(ü|ue)ringen)\>'

color body      black              brightred   '\<(windows|win|klausur)\>'

color body      blue              default   '\<(zittau|neugersdorf|ebersbach|\
furtwangen|eibau)\>'


##################################################
# monochron terminal's coloring


mono normal             none
mono indicator          reverse
mono tree               none
mono status             reverse
mono error              bold
mono message            none
mono quoted             bold
mono signature          none
mono attachment         underline
mono search             reverse
mono tilde              none
mono markers            bold
mono hdrdefault         none
mono bold               bold
mono underline          underline

# vim:set ts=2 ft=muttrc:
##################################################
# ~/.mutt/hooks
# $Id: hooks 2 2005-03-29 07:22:59Z pfeifer $
# Hagen Paul Pfeifer - hagen@jauu.net
# http://www.jauu.net
#
##################################################



folder-hook  .  unmy_hdr  *

# global's
folder-hook  .  my_hdr From: Hagen Paul Pfeifer <hagen@jauu.net>
folder-hook  .  my_hdr X-Key-Id: 98350C22
folder-hook  .  my_hdr X-Key-Fingerprint: 490F 557B 6C48 6D7E 5706 2EA2 4A22 8D45 9835 0C22

# mailinglist realtime-ethernet.ps-xaf.de
folder-hook  INBOX.study.realtime  my_hdr From: Hagen Paul Pfeifer <realtime@0xdef.net>

folder-hook  INBOX.study.wrt54     my_hdr From: Hagen Paul Pfeifer <wrt54@0xdef.net>

# vim:set ts=2 ft=muttrc:
##################################################
# ~/.mutt/lists
# $Id: lists 2 2005-03-29 07:22:59Z pfeifer $
# Hagen Paul Pfeifer - hagen@jauu.net
# http://www.jauu.net
#
##################################################


# lists
lists            \
        ldap     \
        exim     \
        plan9    \
        fellow   \
        lugbz    \
        realtime \
        wrt54

# lists your mailinglits here ...

# vim:set ts=2 ft=muttrc: