|
http://norlug.org/~chipster/index.pxml?muttrc
My .muttrc file
This my actual/live/working .muttrc file - directly on this server.
--------------------------------------------------------------------------------
#
# My bad-ass .muttrc file...
#
# $Id: muttrc,v 1.102 2003/12/09 19:33:31 chipster Exp $
#
# folder stuff
set record="~/Mail/sent" # Keep send msgs. in this file.
set postponed="~/Mail/postponed" # Keep postponed msgs. in this file.
set alias_file="~/.mutt/aliases" # Keep aliases in this file.
# misc stuff
set mailcap_path=~/.mutt/mailcap:/etc/mailcap
# define mailcaps
set mailcap_sanitize
source ~/.mutt/aliases
set tmpdir="~/tmp" # set temp dir.
set nomark_old # Don't mark unread new msgs as old.
set include # Include the message in replies.
set sort_aux=date-received # Sort threads by date received.
set signature="~/.sigs/sig" # static sig
#set signature="sh ~/.sigs/norlug.sh|" # scripted/dynamic sig
set print_cmd="cat - | lpr -P cx3200@melsa-1"
# pipe the mesg. to wife's printer ;-)
set print="yes" # don't prompt on print job :-/
unset sig_dashes # Don't prepend "-- \n" to the signature
unset sig_on_top # place signature above text (if set). # no good in 1.2.5
set hostname=raider.norlug.org # Name of our local host.
set hidden_host # Hide host details.
set edit_headers # I want to edit the message headers.
set sort=threads # used threaded sorting
set fast_reply # don't prompt on reply-to
set visual="vim" # Vim visual mode
set editor="vim" # use Vim as editor.
set smart_wrap # wraps dumb-ass lines > 80 char.
set abort_nosubject=ask-no # don't aboort on non-subject msgs.
set sig_dashes # append "--" to sig.
set attribution="On %d, %n wrote:" # add initial reply attribution.
set move=no # don't ask to move msgs. on exit.
set noconfirmappend # Just append, don't hassle me.
set tilde # Fill out messages with '~'.
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 pager_stop # Don't skip msgs on next page.
set quote_regexp="^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+"
# What we consider to be a quote.
set to_chars=" +TCF " # Drop the "L".
set pager_context=3 # Display 3 lines of context in pager.
set nostrict_threads # Lets have some fuzzy threading.
set sendmail_wait=-1 # Don't wait around for sendmail.
# GPG stuff
macro compose \CP "Fgpg --clearsign\ny"
# Using "CTRL+P", clearsign the message
source ~/.mutt/gpg.rc # use my custom gpg.rc please ;-)
# header stuff
my_hdr X-Editor: `vim --version | grep "VIM - Vi IM" | sed 's/(.*)/\<http:\/\/www.vim.org\>/g'`
my_hdr X-PGP-Public-Key: <http://norlug.org/~chipster/public_key.tgz>
my_hdr X-PGP-Fingerprint: CFFD FA0C 1EC1 44BC 6E67 E709 5AC2 9661 8C55 BF81
my_hdr X-URL: <http://norlug.org/~chipster/>
my_hdr X-Finger: <http://norlug.org/~chipster/?finger>
my_hdr X-System: `cat /etc/redhat-release | sed 's/Linux/GNU\/Linux/g' | sed 's/(.*)//g'`(running Kernel `uname -r` on an `uname -m`)
#my_hdr X-Sent-By: `echo \`whoami\`@\`hostname\``
my_hdr Organization: Northfield Linux Users\' Group
my_hdr X-Location: Northfield, Minnesota USA
# Ignore all headers
ignore *
# Then un-ignore the ones I want to see
unignore From:
unignore To:
unignore Reply-To:
unignore Mail-Followup-To:
unignore Subject:
unignore Date:
unignore Organization:
unignore Newsgroups:
unignore CC:
unignore BCC:
unignore Message-ID:
unignore X-Mailer:
unignore User-Agent:
unignore X-Junked-Because:
unignore X-SpamProbe:
#unignore X-Spam-Status:
# Now order the visable header lines
hdr_order From: Subject: To: CC: BCC: Reply-To: Mail-Followup-To: Date: Organization: User-Agent: X-Mailer:
# filtering message hooks
# By default, don't do anything clever.
message-hook . "unset display_filter"
# Sort out silly characters from Microsoft MUAs or MUAs that suffer the same
# problems.
message-hook "~h \"X-Mailer: (Microsoft Outlook IMO|Experian ContactMail)\"" "set display_filter='tr \\\\200\\\\202\\\\221\\\\222\\\\223\\\\224\\\\225\\\\226\\\\227 \\\\244\\\\054\\\\140\\\\047\\\\042\\\\042\\\\052\\\\055\\\\055'"
# IncrediMail, whatever the hell that is, sends out its text alternative as
# DOS formatted text. Clean things up.
message-hook "~h \"X-Mailer: IncrediMail" "set display_filter='tr -d \\\\r'"
message-hook . "set mime_forward=no" # Forward message as MIME attachments (no)
message-hook "~h multipart" "set mime_forward=ask-yes"
# ask to forward as attachments
# index macros
macro index "G" "!fetchmail\n"
macro index "L" "!vlock\n"
macro index "\Cx\Cb" "<change-folder>?"
macro index "\Cx\Cs" "<pipe-message>cat > ~/"
macro index "\'" "<clear-flag>r"
macro index "y" "<sync-mailbox><change-folder>?<toggle-mailboxes>"
macro index "\Cb" "<pipe-message>urlview<enter>"
macro index "\ea" "<change-folder>=archives/<tab><tab>"
macro index "\eb" "<pipe-message>lbdb-fetchaddr<enter>"
macro index "\eh" "<pipe-message>mailhops<enter>"
macro index "\ef" "<pipe-message>view-x-face<enter>"
macro index "\ev" "<pipe-message>less<enter>"
macro pager "\el" "<enter-command>set invpipe_decode<enter> \
<pipe-message>linkify|w3m -T text/html<enter><enter-command> \
set invpipe_decode<enter>"
# pager macros
macro pager "w" "<enter-command>set invsmart_wrap invmarkers<enter>"
macro pager "y" "<sync-mailbox><change-folder>?<toggle-mailboxes>"
macro pager "\e1" "<enter-command>set pager_index_lines=1<enter>"
macro pager "\e2" "<enter-command>set pager_index_lines=2<enter>"
macro pager "\e3" "<enter-command>set pager_index_lines=3<enter>"
macro pager "\e4" "<enter-command>set pager_index_lines=4<enter>"
macro pager "\e5" "<enter-command>set pager_index_lines=5<enter>"
macro pager "\e6" "<enter-command>set pager_index_lines=6<enter>"
macro pager "\e7" "<enter-command>set pager_index_lines=7<enter>"
macro pager "\e8" "<enter-command>set pager_index_lines=8<enter>"
macro pager "\e9" "<enter-command>set pager_index_lines=9<enter>"
macro pager "\e0" "<enter-command>set pager_index_lines=0<enter>"
macro pager "\Cb" "<pipe-message>urlview<enter>"
macro pager "\Cx\Cb" "<change-folder>?"
macro pager "\Cx\Cs" "<pipe-message>cat > ~/"
macro pager "\eb" "<pipe-message>lbdb-fetchaddr<enter>"
macro pager "\eh" "<pipe-message>mailhops<enter>"
macro pager "\ef" "<pipe-message>view-x-face<enter>"
macro pager "\ev" "<pipe-message>less<enter>"
macro pager "D" "<pipe-message>gpg --decrypt<enter>"
# pipe msg tp GPG for decrypting if munged.
# Tell mutt which MIME types to auto-view
auto_view application/zip
auto_view application/x-gzip
auto_view application/x-gunzip
auto_view application/pgp-signature
auto_view application/pgp
auto_view application/octet-stream
auto_view application/x-zip-compressed
auto_view application/x-arj-compressed
auto_view application/x-tar-gz
auto_view application/ms-tnef
auto_view application/x-perl
auto_view application/x-sh
auto_view application/x-tcl
auto_view application/x-delphi-source
auto_view application/emacs-lisp
auto_view application/msword
auto_view text/x-patch
#auto_view text/html
auto_view text/x-vcard
auto_view text/x-script.elisp
auto_view image/tiff
auto_view text/x-lisp
# color configs
color attachment black magenta
color body cyan default "ftp://[^ ]*"
color body cyan default "www.[^ ]*"
color body brightgreen default "[[:alnum:]][-+.#_[:alnum:]]*@[-+.[:alnum:]]*[[:alnum:]]"
color body cyan default "<URL:[^ ]*>"
color bold green default
color error red default
color header yellow default "^cc: "
color header green default "^date: "
color header yellow default "^from "
color header cyan default "^from: "
color header yellow default "^newsgroups: "
color header yellow default "^reply-to: "
color header cyan default "^subject: "
color header green default "^to: "
color header yellow default "^x-mailer: "
color header yellow default "^message-id:"
color header yellow default "^Organization:"
color header yellow default "^Organisation:"
color header yellow default "^User-Agent:"
color header yellow default "^message-id: .*pine"
color indicator black green
color markers brightred default
color message white blue
color normal white default
color quoted cyan default
color quoted1 yellow default
color quoted2 red default
color quoted3 green default
color quoted4 cyan default
color quoted5 yellow default
color quoted6 red default
color quoted7 green default
color signature brightred default
color status brightgreen blue
color tilde blue default
color tree brightmagenta default
color underline yellow default
# word/sentence "attribitions"
color body brightblue default "(^|[[:space:]])\\*[^[:space:]]+\\*([[:space:]]|$)"
# *Bold* text.
color body brightblue default "(^|[[:space:]])_[^[:space:]]+_([[:space:]]|$)"
# _Underlined_ text.
color body brightblue default "(^|[[:space:]])/[^[:space:]]+/([[:space:]]|$)"
# /Italic/ text.
# Various smilies and the like
color body yellow default "[;:]-[)/(|]"
color body yellow default "[8][-\^][)|]"
color body yellow default "[;:][)/(|]"
color body brightblue default "(http|https|rsync|ftp|news|telnet|finger|gopher)://[^ ]*"
color body brightblue default "<(http|https|rsync|ftp|news|telnet|finger|gopher)://[^ ]*>"
color index green default ~N
color index red default ~O
color index magenta default ~F
color index blue default ~T
color index yellow default ~D
color header red cyan "^X-Spam-Status:"
mono header bold "^(From|Subject|X-Spam-Status):"
# EOF |
|