Added .muttrc.

This commit is contained in:
Ryan Cavicchioni 2010-04-05 08:55:57 -05:00
commit 0d2e221494

66
.muttrc Normal file
View File

@ -0,0 +1,66 @@
# general settings
set editor = "vim -u ~/.vimrc-mail"
# set editor = "nvi -c 'set ts=4 wl=70 ruler'"
# set editor = "elvis -c 'set sw=4 tw=70 ruler'"
set sort = reverse-threads
set use_envelope_from = yes
set use_from = yes
set ispell = "aspell -e -c"
set index_format = "%4C %Z [%{%c}] %-30.30L (%?l?%4l&%4c?) %s"
set header_cache = ~/.mutt.cache/
set message_cachedir = ~/.mutt.cache/
# folders
set record = ~/Maildir/.Sent
set mbox = ~/Maildir/.Archive
set postponed = ~/Maildir/.Drafts
set spoolfile = ~/Maildir
set folder = $HOME/Maildir
# pretty colors
color index brightyellow black ~N
color index red black ~F
color index red black '~s "^\\[Fail2Ban\\]"'
color index brightcyan black '~s "^[0-9]{4}-[0-9]{2}-[0-9]{2}\\slinks+"
color index brightgreen black '^To Do:'
color header brightgreen black "X-Spam-Status: NO"
color header red black "X-Spam-Status: YES"
color header brightwhite black "X-Spam-Level:"
color body brightwhite black "[\\*][a-zA-Z]*[\\*]"
color header brightgreen black "X-Bogosity: Ham"
color header red black "X-Bogosity: Spam"
color header brightwhite black "X-Bogosity: Unsure"
color header red black "X-Virus-Scan:.*FOUND"
color header brightwhite black "X-Greylist:"
color status brightwhite red
# folders
set record = ~/Maildir/.Sent
set mbox = ~/Maildir/.Archive
set postponed = ~/Maildir/.Drafts
set spoolfile = ~/Maildir
set folder = $HOME/Maildir
# headers
ignore *
unignore From: To: Cc: Bcc: Reply-To: Mail-Followup-To: Organization: User-Agent: X-Mailer: Subject: Date: X-Spam-Status: X-Bogosity: X-Spam-Level: X-Virus-Scan: X-Greylist: Sender: List-Id: Return-Path: Authentication-Results: Received-SPF: X-Virus-Scanned: X-Virus-Status: X-Priority:
hdr_order From: Reply-To: Mail-Followup-To: To: Cc: Bcc: Subject: Date: Organization: User-Agent: X-Mailer: X-Spam-Status: X-Bogosity: X-Spam-Level: X-Virus-Scan: X-Greylist: Sender: List-Id: Return-Path: Authentication-Results: Received-SPF: X-Virus-Scanned: X-Virus-Status: X-Priority:
# key bindings
macro index G "!echo 'fetching... ' ; getmail 2>&1 > /dev/null &\r" "Check for new mail via fetchmail"
macro pager G "!echo 'fetching... ' ; getmail 2>&1 > /dev/null &\r" "Check for new mail via fetchmail"
macro browser G "!echo 'fetching... ' ; getmail 2>&1 > /dev/null &\r" "Check for new mail via fetchmail"
set wait_key = no
# Add this to your ~/.muttrc to integrate spamassassin and mutt
# spamassassin report and classify as spam
macro index S "|/usr/bin/spamassassin -r"
# spamassassin classify as ham
macro index H "|/usr/bin/sa-learn --ham --no-rebuild --single"
# rebuild the spamassassin bayes filter db
macro index R "!/usr/bin/sa-learn --rebuild"
source ~/.muttrc.personal
source ~/.muttrc.aliases