#source "~/color.muttrc"
# User description ########################################################
#set realname = ""
#set reply_to = ask-yes
#set reverse_name = no
set reverse_realname = no
#set from = ""
#set gecos_mask = "^[^,]*"
#set hidden_host = no
#set hostname = ""
#set alternates = "awk '{s=s"|"$0} END {print substr(s,2)}' $HOME/.myemail"
# General mutt options ####################################################
#set wait_key = yes
#set weed = yes
set status_on_top = yes
#set suspend = yes
#set timeout = 600
set beep = no
#set user_agent = yes
#set delete_untag = yes
#set prompt_after = yes
#set quit = yes
#set read_inc = 10
#set mail_check = 5
set menu_scroll = yes
#set meta_key = no
#set help = yes
#set history = 10
#set read_only = no
#set date_format = "!%a, %b %d, %Y at %I:%M:%S%p %Z"
#set delete = ask-yes
#set dotlock_program = "/usr/local/bin//mutt_dotlock"
#set beep_new = no
set charset = iso-8859-15
#set check_new = yes
# OS Specifiques options ##################################################
set tmpdir = /tmp
#set print = ask-no
#set print_command = "lpr"
#set print_decode = yes
#set ispell = "ispell"
set ispell="aspell --mode=email check"
set locale = de_DE@euro
#set shell = ""
set spoolfile = $HOME/.mails/inbox/
# Menu index ##############################################################
#set wrap_search = yes
#set sort_re = yes
#set status_chars = "-*%A"
#set status_format = "-%r-Mutt: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?%?l? %l?]---(%s/%S)-%>-(%P)---"
#set strict_threads = no
#set thorough_search = no
#set to_chars = " +TCF"
#set simple_search = "~f %s | ~s %s"
set sort = threads
set sort_aux = reverse-date-sent
#set resolve = yes
#set index_format = "%4C %Z %{%b %d} %-15.15L (%4l) %s"
#set mark_old = yes
#set allow_8bit = yes
#set arrow_cursor = no
#set ascii_chars = no
#set auto_tag = no
#set collapse_unread = yes
#set uncollapse_jump = no
# Internal Pager ##########################################################
#set visual = ""
#set sig_dashes = yes
#set smart_wrap = yes
#set smileys = "(>From )|(:[-^]?[][)(><}{|/DP])"
#set quote_regexp = "^([ \t]*[|>:}#])+"
#set pager = "builtin"
set pager_context = 1
#set pager_format = "-%Z- %C/%m: %-20.20n %s"
set pager_index_lines = 6
set pager_stop = yes
#set markers = yes
#set escape = "~"
#set tilde = no
# Composing ###############################################################
#set use_domain = yes
set signature = "~/.signature"
#set postpone = ask-yes
#set postponed = "~/postponed"
#set query_command = ""
#set recall = ask-yes
set editor = "vim -c 'set textwidth=65 | normal }j'"
#set fast_reply = no
#set abort_nosubject = ask-yes
#set abort_unmodified = yes
#set askbcc = no
#set askcc = no
# Replying ################################################################
#set post_indent_string = ""
#set reply_regexp = "^(re([\\[0-9\\]+])*|aw):[ \t]*"
#set reply_self = no
#set indent_string = "> "
#set in_reply_to = "%i; from %a on %{!%a, %b %d, %Y at %I:%M:%S%p %Z}"
#set honor_followup_to = yes
#set ignore_list_reply_to = no
set include = yes
set attribution = "On %d, %n wrote:"
#set bounce_delivered = yes
# Forwarding ##############################################################
#set forward_decrypt = yes
#set forward_decode = yes
#set forward_format = "[%a: %s]"
#set forward_quote = no
# Folder and Mailbox ######################################################
#set write_inc = 10
#set sort_browser = alpha
set record = $HOME/.mails/sent-mail/
#set pipe_split = no
#set pipe_decode = no
#set pipe_sep = "\n"
set move = no
#set mask = "!^\\.[^.]"
set mbox = +inbox
set mbox_type = Maildir
#set mh_purge = no
#set confirmappend = yes
#set confirmcreate = yes
#set copy = yes
#set default_hook = "~f %s !~P | (~P ~C %s)"
#set fcc_attach = yes
#set fcc_clear = no
set folder = ~/.mails
#set folder_format = "%2C %t %N %F %2l %-8.8u %-8.8g %8s %d %f"
#set force_name = no
# Headers #################################################################
#set hdrs = yes
#set header = no
set edit_headers = yes
set autoedit = no
# Sending #################################################################
#set write_bcc = yes
#set use_from = yes
#set save_address = no
#set save_empty = yes
#set save_name = no
#set send_charset = ""
#set mix_entry_format = "%4n %c %-16s %a"
#set mixmaster = "mixmaster"
#set metoo = no
#set encode_from = no
#set envelope_from = no
#set followup_to = yes
# Alias ###################################################################
#set sort_alias = alias
#set reverse_alias = no
set alias_file = "~/.muttrc.aliases"
#set alias_format = "%4n %t %-10a %r"
source ~/.muttrc.aliases
# Attached documents ######################################################
#set attach_format = "%u%D%I %t%4n %T%.40d%> [%.7m/%.10M, %.6e%?C?, %C?, %s] "
#set attach_sep = "\n"
#set attach_split = yes
# MIME ####################################################################
#set rfc2047_parameters = no
#set mime_forward_rest = yes
#set message_format = "%s"
#set mailcap_path = ""
#set mailcap_sanitize = yes
#set mime_forward = no
#set mime_forward_decode = no
#set implicit_autoview = no
# POP #####################################################################
#set pop_user = ""
#set pop_pass = ""
#set pop_delete = no
#set pop_host = ""
#set pop_port = 110
#set pop_last = no
# IMAP ####################################################################
#set imap_checkinterval = 60
#set imap_list_subscribed = no
#set imap_user =
#set imap_cramkey = ""
#set imap_pass =
#set imap_passive = yes
#set imap_servernoise = yes
#set imap_home_namespace = ""
#set imap_preconnect = ""
# SSL #####################################################################
#set entropy_file = ""
#set ssl_usesystemcerts = yes
#set ssl_use_sslv3 = yes
#set ssl_use_tlsv1 = yes
#set imap_force_ssl = no
# PGP #####################################################################
set pgp_timeout = 1800
set pgp_verify_sig = yes
#set pgp_sort_keys = address
#set pgp_create_traditional = no
set pgp_decode_command="gpg %?p?--passphrase-fd 0? --no-verbose --batch --output - %f"
# verify a pgp/mime signature
set pgp_verify_command="gpg --no-verbose --batch --output - --verify %s %f"
# decrypt a pgp/mime attachment
set pgp_decrypt_command="gpg --passphrase-fd 0 --no-verbose --batch --output - %f"
# import a key into the public key ring
set pgp_import_command="gpg --no-verbose --import -v %f"
# export a key from the public key ring
set pgp_export_command="gpg --no-verbose --export --armor %r"
# verify a key
set pgp_verify_key_command="gpg --no-verbose --batch --fingerprint --check-sigs %r"
# read in the public key ring
set pgp_list_pubring_command="gpg --no-verbose --batch --with-colons --list-keys %r"
# read in the secret key ring
set pgp_list_secring_command="gpg --no-verbose --batch --with-colons --list-secret-keys %r"
# receive key from keyserver:
set pgp_getkeys_command="gpg --recv-keys %r > /dev/null 2>&1"
set pgp_clearsign_command = "gpg --no-verbose --batch --output - --passphrase-fd 0 --armor --textmode --clearsign %?a?-u %a? %f"
set pgp_sign_command = "gpg --no-verbose --batch --output - --passphrase-fd 0 --armor --detach-sign --textmode %?a?-u %a? %f"
#set pgp_encrypt_sign_command = "pgpewrap gpg --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust --encrypt-to DCA720F1 -- -r %r -- %f"
set pgp_encrypt_sign_command="pgpewrap /usr/bin/gpg --charset utf-8 --passphrase-fd 0 --batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust --encrypt-to ###pgp-id### -- -r %r -- %f"
set pgp_encrypt_only_command = "pgpewrap gpg --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust --encrypt-to ###pgp-id### -- -r %r -- %f"
#set certificate_file = ""
set pgp_autosign = yes
#set pgp_autoencrypt = no
#set pgp_entry_format = "%4n %t%f %4l/0x%k %-4a %2c %u"
#set pgp_long_ids = no
#set pgp_replyencrypt = no
#set pgp_replysign = no
#set pgp_replysignencrypted = no
#set pgp_retainable_sigs = no
#set pgp_show_unusable = yes
#set pgp_sign_as = ""
#set pgp_sign_micalg = "pgp-sha1"
#set pgp_strict_enc = yes
#set pgp_good_sign="^gpg: Good signature from"
set pgp_good_sign="`gettext -d gnupg -s 'Good signature from "' | tr -d '"'`"
# Scoring #################################################################
#set score = yes
#set score_threshold_delete = -1
#set score_threshold_flag = 9999
#set score_threshold_read = -1
# Sendmail ################################################################
set use_8bitmime = no
set sendmail = "/usr/lib/sendmail -oem -oi"
set sendmail_wait = 0
set dsn_notify = ""
set dsn_return = ""
bind pager h display-toggle-weed
mailboxes = `echo $HOME/.mails/* | sed s#$HOME/.mails/#=#g`
subscribe Gentoo-User-de Gentoo-User Gentoo-Gwn
subscribe SP03g7
# default list of header fields to weed out when displaying mail
#ignore them all and then unignore what you want to see
ignore *
unignore Date To From: Subject X-Mailer Organization User-Agent
hdr_order Date From To Subject X-Mailer User-Agent Organization
save-hook . =spam/
folder-hook . set sort=threads
folder-hook . my_hdr Organization: "Fachschaft Informatik"
folder-hook . my_hdr X-OS: `uname -mnrs`
folder-hook gentoo.* set signature = "~/.sig.gentoo|"
folder-hook fsinfo set signature = "~/.sig.fsinfo|"
folder-hook inbox set signature = "~/.signature"
# Ignore annoying MAIL SYSTEM INTERNAL DATA message
# generated by c-client (pine / uw-imapd)
#folder-hook . "push \"l!(~s 'FOLDER INTERNAL DATA')\n*\""
macro index <F1> "<change-folder>=inbox<enter>"
macro index <F2> "<change-folder>=fsinfo<enter>"
macro index <F3> "<change-folder>=bugtracker<enter>"
macro index <F4> "<change-folder>=spam<enter>"
macro index <F5> "<change-folder>=gentoo-user-de<enter>"
macro index <F6> "<change-folder>=gentoo-user<enter>"
macro index <F7> "<change-folder>=gentoo-gwn<enter>"
# spam bekaempfen
macro index S "<enter-command>set wait_key=no<enter><save-message>=spam/<enter><sync-mailbox><enter>|/usr/bin/sa-learn --spam --single --no-rebuild<enter><enter-command>set wait_key=yes<enter><sync-mailbox><enter>" "Learn Message as spam"
macro pager S "<enter-command>set wait_key=no<enter><save-message>=spam/<enter><sync-mailbox><enter>|/usr/bin/sa-learn --spam --single --no-rebuild<enter><enter-command>set wait_key=yes<enter><sync-mailbox><enter>" "Learn Message as spam"
macro index @ "<enter-command>set wait_key=no\n<tag-prefix><pipe-entry>sa-learn --spam --no-rebuild\n<enter-command>set wait_key=yes\n" "Learn tagged messages as spam"
# spamassassin classify as ham
macro index H "<enter-command>set wait_key=no<enter>|/usr/bin/sa-learn --ham --no-rebuild --single<enter><enter-command>set wait_key=yes<enter>" "Learn Message as ham"
macro pager H "<enter-command>set wait_key=no<enter>|/usr/bin/sa-learn --ham --no-rebuild --single<enter><enter-command>set wait_key=yes<enter>" "Learn Message as ham"
# rebuild the spamassassin bayes filter db
macro index R "<enter-command>set wait_key=no<enter>!/usr/bin/sa-learn --rebuild<enter><enter-command>set wait_key=yes<enter>" "Rebuild database"
macro pager R "<enter-command>set wait_key=no<enter>!/usr/bin/sa-learn --rebuild<enter><enter-command>set wait_key=yes<enter>" "Rebuild database"
# So tun die POS1 und ENDE-Tasten, was sie sollen
bind index <home> first-entry
bind index <end> last-entry
bind pager <home> top
bind pager <end> bottom
bind browser <home> first-entry
bind browser <end> last-entry
#Let's play around with colors:foreground/background aka ich mag's bunt...
color attachment green default
color tree brightmagenta default
color error cyan default
color normal white default
color indicator brightblue default
color signature blue default
color status black blue
color tilde green default
color message cyan default # info messages
color search brightyellow red # search matches
color markers red default # + at beginning of wrapped lines
color underline brightblue default # hiliting underlined patterns in body
#Header/X-Header treiben es genauso bunt...
color hdrdefault brightred default
color header brightblue default ^From:
color header green default ^Cc:
color header magenta default ^X
color header brightblue default ^Subject:
color header brightblue default ^Organization:
color header brightblue default ^Reply
color header green default ^From
color header magenta default ^X-Mailer:
color header brightblue default ^To:
color header magenta default ^X-Mailing-List:
color header green default ^Date:
#Wir kennzeichnen die Quote-Ebenen
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
# Und jetzt schmieren noch ein wenig in den Msgs. herum - nur farblich latürnich
# URLs
color body brightblue default "(http|ftp|news|telnet|finger)://[^ ]*"
color body brightblue default "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+"
# Email-Adressen
color body brightblue default "[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+"
# Smilies und anderer Mumpitz
color body blue default "<[Gg]>"
color body blue default "<[Bb][Gg]>"
color body blue default " [;:]-*[)>(<|]"
# highlight *bold* _underlined_ /italic/ text
# doesn't seem to be solvable more elegantly :-(
color body brightwhite default "[^[:alnum:]][*_/][-_&!.,[:alnum:]]+[*_/][^[:alnum:]]"
color body brightwhite default "^[*_/][-_&!.,[:alnum:]]+[*_/][^[:alnum:]]"
color body brightwhite default "^[*_/][-_&!.,[:alnum:]]+[*_/]$"
# gpg kram
color body green default "^gpg: Good signature from"
color body brightred default "^gpg: BAD signature from"
color body brightred default "^gpg: Note: This key has expired!"
color body brightyellow default "^gpg: WARNING: This key is not certified with a trusted signature!"
color body brightyellow default "^gpg: can't handle these multiple signatures"
color body brightyellow default "^gpg: signature verification suppressed"
color body brightyellow default "^gpg: invalid node with packet of type"
color body brightyellow default "^gpg: There is no indication that the signature belongs to the owner."
macro pager c '<change-folder>?<toggle-mailboxes>'
macro index c '<change-folder>?<toggle-mailboxes>'
macro index q ":push <show-version>\n"
macro index x ":push <show-version>\n"
macro browser x ":push <show-version>\n"
macro pager x ":push <show-version>\n"
bind pager q exit
bind index <F10> quit
push <show-version>
# EOF