oliver.kosmann /.muttrc

# muttrc

# key settings {{{
macro index c "?"
macro index ^ "!ssh lion fetchmail\n"
bind index \cxc change-folder
bind index home first-entry
bind index end last-entry
bind index gg first-entry
bind index G last-entry
bind index q noop
bind index Q quit
bind index M query
bind index m mail
macro index s ""
macro index \cs ""
macro index  ""
macro index i "=inbox\n"

macro pager V "|urlview\n"
bind pager home top
bind pager end bottom
bind pager e edit
bind pager  previous-line
bind pager  next-line
bind pager k previous-line
bind pager j next-line
bind pager gg top
bind pager G bottom
bind pager R group-reply
bind pager \cr recall-message
macro pager s 
macro pager i "q=inbox\n"

macro browser Q qQ 
bind browser home first-entry
bind browser end last-entry
macro browser i "q=inbox\n"

macro attach Q qqQ 

macro query Q qQ
bind query M query
bind query m mail

bind index Z noop
bind index z noop

macro editor  ""

#macro index zFilterSpam "T~B\"X-Spam-Status:.Yes.*\"\n"
macro index Z "T.\n;\|/usr/bin/lbdb-fetchaddr\n;t"
macro index z "~B\"X-Spam-Status:.Yes.*\""

#macro index L "T~B\"X-Spam-Status:\ Yes.*\"\n;S"
# key settings }}}

# folder-hooks {{{
#folder-hook .*     source muttrc.folder_is_default
#macro index S ";+INBOX.spam\n"
#macro pager S "+INBOX.spam\n"
macro index s ";+INBOX.done"
macro pager s "+INBOX.done"


#folder-hook '^.*[Ss][Pp][Aa][Mm].*$' 'macro index s "+INBOX"'
#folder-hook '^.*[Ss][Pp][Aa][Mm].*$' 'macro pager s "+INBOX"'
#folder-hook !'^.*[Ss][Pp][Aa][Mm].*$' 'macro index L "T~B\"X-Spam-Status:\.Yes.*\"\n"'
#folder-hook '^.*INBOX$' 'push "L"'


folder-hook =imaps://mail.kosmann.net/INBOX$ 'push T~B"X-Spam-Status: Yes.*"\n\;'
folder-hook =imaps://mail.kosmann.net/INBOX$ 'macro index L \'T~B"X-Spam-Status: Yes.*"\n\''
folder-hook =INBOX$ 'macro index L \'T~B"X-Spam-Status: Yes.*"\n\''
folder-hook =+INBOX$ 'macro index L \'T~B"X-Spam-Status: Yes.*"\n\''
# normally folder-hook }}}

# message-hooks {{{
message-hook '~N~B\"X-Spam-Status:.No.*\"' 'push "|/usr/bin/lbdb-fetchaddr\n"'
# message-hooks }}}

# imap settings {{{
set mail_check=90
set timeout=30
set connect_timeout=20
set imap_user="oliver@kosmann.net"
set imap_pass='SECRET'
set folder=imaps://mail.kosmann.net/
#set imap_home_namespace=imaps://mail.kosmann.net/INBOX
set ssl_starttls=yes
set spoolfile=+INBOX
set postponed=+INBOX.drafts
set imap_keepalive=180
set move=no
# imap settings }}}

# mailboxes {{{
mailboxes +INBOX
mailboxes +INBOX.Drafts
mailboxes +INBOX.Sent
mailboxes +INBOX.Trash
mailboxes +INBOX.business
mailboxes +INBOX.done
mailboxes +INBOX.spam
mailboxes +INBOX.work
mailboxes /home/ovo/mail
mailboxes /home/oliver/mail
# mailboxes }}}

# behavioral settings {{{
set mailcap_path=~/.mutt/mailcap
set editor="vim -c 'set tw=72'"         # Use vim.
set sort=threads                        # Sort Mails by threads
set fast_reply                          # Don't ask, answer :o)
set wait_key=no                         # don't prompt for press key
set delete=yes
set move=no
alternative_order text/plain text/enriched text/html text/*
auto_view text/html text/enriched
#set alternates=(.*oliver@kosmann.net.*|ovo@ki-ag.com|o.vogel@ki-ag.com|.*[Oo]liver.[Vv]ogel.*|.*dummalsbrodt.*)
alternates (.*oliver@kosmann.net.*|ovo@ki-ag.com|o.vogel@ki-ag.com|.*[Oo]liver.[Vv]ogel.*|.*dummalsbrodt.*)
#alternates oliver.kosmann.net
set to_chars=" >ยป=! "                   # 1. not directly adressed to me
                                        # 2. addressed exclusively to me
                                        # 3. addressed to me and others
                                        # 4. CC to me
                                        # 5. sent from me
                                        # 6. addressed to a mailinglist I am reading
set pager_index_lines=0                 # Disable Minipager above message
set pager_stop                          # Don't skip msgs on next page.
set nomark_old                          # Don't mark unread new msgs as old.
set copy                                # Keep copies of outgoing mail...
set record=+INBOX                       # ... and it gets saved in =sent-mail.
set read_inc=100                        # Read counter ticks every 100 msgs.
set write_inc=100                       # Write counter ticks every 100 msgs.
set noconfirmappend                     # Just append, don't hassle me.
set signature=~/.signature
set include                             # Include the message in replies.
set query_command="lbdbq '%s'"          # Use the little brother database for
                                        # doing queries.
set pipe_split=yes                      # pipe messages one by one
# behavioral settings }}}

# basic settings {{{
set charset=iso-8859-1
set send_charset=iso-8859-1

set sendmail="/usr/bin/esmtp -C /stick/mutt/.mutt/esmtprc -f oliver@kosmann.net"

my_hdr From: Oliver Kosmann 
# basic settings }}}

# header {{{
ignore *
unignore from date subject to cc
unignore organization organisation x-mailer: x-newsreader: x-mailing-list:
unignore posted-to:
unignore "X-Spam-Level: ***"
unignore X-Bugzilla-Reason:
unignore X-Bugzilla-Component:
unignore X-Bugzilla-Product:
unhdr_order *
hdr_order date X-Spam-Level x-mailer: from organization organisation x-newsreader: x-mailing-list: posted-to: .* X-Bugzilla-Reason X-Bugzilla-Component X-Bugzilla-Product cc to subject
message-hook "~h RAZOR" "unignore X-Spam-Status"
# header }}}

# colors {{{
color error         red                 white
color message       brightgreen         white

color indicator     brightblack         yellow

color tree          brightmagenta       white

color index         brightblack         white ~A
color index         brightcyan          white ~Q
color index         brightred           white ~D
color index         brightmagenta       white ~N

# spam mails
#color index         brightblack         green ~B"X-Spam-Status:.Yes.*"
#color index         brightmagenta       green ~N~B"X-Spam-Status:.Yes.*"

# my own mailes
color index         brightcyan          cyan ~P

# tagged mails
color index         brightblack         blue ~T
color index         brightcyan          blue ~Q~T
color index         brightcyan          blue ~P~T
color index         brightred           blue ~D~T
color index         brightmagenta       blue ~N~T

## pager
color normal        black               white

## message header
color hdrdefault    brightblue          white
color header        red                 white   ^X-Spam-Level:
color header        black               yellow  ^Subject:
color header        brightgreen         yellow  ^From.*
color header        black               white   ^To
color header        black               white   ^Cc
color header        brightgreen         yellow  ^From:.*ovo.*
color header        black               yellow  ^Cc:.*ovo.*
color header        red                 yellow  ^To:.*ovo.*
color header        brightgreen         yellow  ^From:.*o\.vogel.*
color header        black               yellow  ^Cc:.*o\.vogel.*
color header        red                 yellow  ^To:.*o\.vogel.*
color header        brightgreen         yellow  ^From:.*oliver.kosmann.*
color header        black               yellow  ^Cc:.*oliver.kosmann.*
color header        red                 yellow  ^To:.*oliver.kosmann.*

## message body
## links
color body          brightmagenta       white "(https|http|ftp|news|telnet|finger)://[^ ]*"
color body          brightmagenta       white "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+"
color body          brightmagenta       white "[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+"


## smilies
color body          red                 white "[*\"][Gg][*\"]"
color body          red                 white "[*\"][Bb][Gg][*\"]"
color body          red                 white "[.;:|][-*+o][)>(<|oO{}D\\]\\[]"
color body          red                 white "-[.]-"
color body          red                 white "(oO|Oo)"

## quotes
color quoted        brightgreen         white  
color quoted1       brightblue          white
color quoted2       brightgreen         white  
color quoted3       brightblue          white
color quoted4       brightgreen         white  
color quoted5       brightblue          white
color quoted6       brightgreen         white  
color quoted7       brightblue          white

## message footer
color signature     brightblue          blue
color attachment    black               blue
color tilde         brightblue          blue




## unknown
color markers       green               red
color underline     green               red
color bold          green               red
color search        green               red
# colors }}}



# vim: set foldmarker={{{,}}} foldenable foldmethod=marker foldnestmax=1 foldminlines=2 foldlevelstart=0: