home directory settings

Just in case I need these for elsewhere, there are a few bash and program settings that I like to have around.

Bash (.bash_profile)

#set your preferred editor
export EDITOR=vi
export VISUAL=vi

# Make ls easy
export LS_OPTIONS='--color=auto'
eval `dircolors`
alias ls='ls $LS_OPTIONS'
alias ll='ls $LS_OPTIONS -l'
alias l='ls $LS_OPTIONS -lah'

Mutt (.mutt/muttrc)

# Set the mailbox type you have.
set mbox_type=Maildir 

# Set the default folder
set folder = ~/Maildir/
set spoolfile = ~/Maildir/
# Don't ask to move your email on exit.
set move=no

# Give it a default from address.
set from="Alastair Campbell <name@example.com>"

# ignore all sorts of rubbish headers.
ignore X-Spam-Status
ignore lines precedence status
ignore x-keywords x-uid x-ftn-via x-ftn-domain x-ftn-seen-by x-ftn-path
ignore x-gateway x-loop x-sender x-priority x-spam-level x-spam-checker-version
ignore mbox-line x-pop3-rcpt x-mailing-list x400- dl-expansion-history
ignore priority alternate-recipient x-zc-via 
ignore x-received x-envelope-sender x-return-path x-authentication-warning
ignore resent-message-id resent-sender resent-date resent-cc
ignore x-envelope-from x-envelope-to x-delivery-time
ignore x-egroups-return list-unsubscribe list-archive list-help
ignore list-post list-subscribe x-msmail-priority x-mimeole x-beenthere
ignore X-SA-Exim-Connect-IP X-SA-Exim-Mail-From X-SA-Exim-Version
ignore X-SA-Exim-Scanned X-YMail-OSG X-MaxCode-Template X-XPT-XSL-Name 
ignore Accept-Language acceptlanguage X-BigFish
ignore X-AMAZON-* X-AuditID X-Authority-Analysis
# Outlook anti get-IDed-as-spam headers
ignore x-cr-puzzleid x-cr-hashedpuzzle

Mailfilter (.mailfilter)

if (/^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*/)
        to "/dev/null"

if (/^X-Spam-Level: \*\*\*\*\*/)
           to "$HOME/Maildir/.spam/"

Leave a Reply

Your email address will not be published. Required fields are marked *