.muttrc clean up.
This commit is contained in:
parent
0d2e221494
commit
b40e5c7cd8
55
.muttrc
55
.muttrc
@ -1,66 +1,57 @@
|
|||||||
# general settings
|
## general settings
|
||||||
set editor = "vim -u ~/.vimrc-mail"
|
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 sort = reverse-threads
|
||||||
set use_envelope_from = yes
|
set use_envelope_from = yes
|
||||||
set use_from = yes
|
set use_from = yes
|
||||||
set ispell = "aspell -e -c"
|
set ispell = "aspell --mode=email --check"
|
||||||
set index_format = "%4C %Z [%{%c}] %-30.30L (%?l?%4l&%4c?) %s"
|
set index_format = "%4C %Z [%{%c}] %-30.30L (%?l?%4l&%4c?) %s" # better date format in the index
|
||||||
set header_cache = ~/.mutt.cache/
|
set header_cache = ~/.mutt.cache/
|
||||||
set message_cachedir = ~/.mutt.cache/
|
set message_cachedir = ~/.mutt.cache/
|
||||||
|
|
||||||
# folders
|
## folders
|
||||||
set record = ~/Maildir/.Sent
|
set record = ~/Maildir/.Sent
|
||||||
set mbox = ~/Maildir/.Archive
|
set mbox = ~/Maildir/.Archive
|
||||||
set postponed = ~/Maildir/.Drafts
|
set postponed = ~/Maildir/.Drafts
|
||||||
set spoolfile = ~/Maildir
|
set spoolfile = ~/Maildir
|
||||||
set folder = $HOME/Maildir
|
set folder = $HOME/Maildir
|
||||||
|
|
||||||
# pretty colors
|
## pretty colors
|
||||||
color index brightyellow black ~N
|
color index brightyellow black ~N # highlight new messages
|
||||||
color index red black ~F
|
color index red black ~F # highlight flagged messages
|
||||||
color index red black '~s "^\\[Fail2Ban\\]"'
|
color index brightgreen black "^To Do:" # highlight To Do items in the index
|
||||||
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 brightgreen black "X-Spam-Status: NO"
|
||||||
color header red black "X-Spam-Status: YES"
|
color header red black "X-Spam-Status: YES"
|
||||||
color header brightwhite black "X-Spam-Level:"
|
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 red black "X-Virus-Scan:.*FOUND"
|
||||||
color header brightwhite black "X-Greylist:"
|
color header brightwhite black "X-Greylist:"
|
||||||
color status brightwhite red
|
color status brightwhite red # color the status bar
|
||||||
|
|
||||||
# folders
|
## folders
|
||||||
set record = ~/Maildir/.Sent
|
set record = ~/Maildir/.Sent
|
||||||
set mbox = ~/Maildir/.Archive
|
set mbox = ~/Maildir/.Archive
|
||||||
set postponed = ~/Maildir/.Drafts
|
set postponed = ~/Maildir/.Drafts
|
||||||
set spoolfile = ~/Maildir
|
set spoolfile = ~/Maildir
|
||||||
set folder = $HOME/Maildir
|
set folder = $HOME/Maildir
|
||||||
|
|
||||||
# headers
|
## headers
|
||||||
|
|
||||||
ignore *
|
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:
|
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:
|
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
|
## key bindings
|
||||||
macro index G "!echo 'fetching... ' ; getmail 2>&1 > /dev/null &\r" "Check for new mail via fetchmail"
|
# 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 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"
|
# macro browser G "!echo 'fetching... ' ; getmail 2>&1 > /dev/null &\r" "Check for new mail via fetchmail"
|
||||||
|
# set wait_key = no
|
||||||
|
|
||||||
set wait_key = no
|
## spamassassin stuff
|
||||||
|
|
||||||
# Add this to your ~/.muttrc to integrate spamassassin and mutt
|
|
||||||
# spamassassin report and classify as spam
|
# spamassassin report and classify as spam
|
||||||
macro index S "|/usr/bin/spamassassin -r"
|
# macro index S "|/usr/bin/spamassassin -r"
|
||||||
# spamassassin classify as ham
|
# spamassassin classify as ham
|
||||||
macro index H "|/usr/bin/sa-learn --ham --no-rebuild --single"
|
# macro index H "|/usr/bin/sa-learn --ham --no-rebuild --single"
|
||||||
# rebuild the spamassassin bayes filter db
|
# rebuild the spamassassin bayes filter db
|
||||||
macro index R "!/usr/bin/sa-learn --rebuild"
|
# macro index R "!/usr/bin/sa-learn --rebuild"
|
||||||
|
|
||||||
source ~/.muttrc.personal
|
## personal settings
|
||||||
source ~/.muttrc.aliases
|
source ~/.muttrc.personal # settings such as name and email address
|
||||||
|
source ~/.muttrc.aliases # my address book
|
||||||
|
Loading…
Reference in New Issue
Block a user