Skip to content

Instantly share code, notes, and snippets.

@reyjrar
Created January 12, 2015 20:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reyjrar/80963224c8affe0a3ffe to your computer and use it in GitHub Desktop.
Save reyjrar/80963224c8affe0a3ffe to your computer and use it in GitHub Desktop.
New old mail setup
Expunge Slave
Create Both
CopyArrivalDate yes
Sync All
SyncState *
IMAPAccount company
Host imap.company.com
CertificateFile ~/Certificates/godaddy.pem
UseIMAPS yes
UseTLSv1.2 yes
User my_user
PassCmd ~/.mutt/bin/get-mail-password.sh
MaildirStore company-local
Path ~/Maildir/
Inbox ~/Maildir/Inbox
Flatten .
IMAPStore company-remote
Account company
Channel company-inbox
Master :company-remote:"INBOX"
Slave :company-local:"Inbox"
Channel company-main
Master :company-remote:"INBOX/"
Slave :company-local:
Patterns "Important" "Drafts" "Lists" "Not To Me" "Sent" "Security"
Channel company-security
Master :booking-remote:"INBOX/Security/"
Slave :booking-local:"Security/"
Patterns "team"
Channel company-security-low
Master :company-remote:"INBOX/Security/"
Slave :company-local:"Security/"
Patterns * !"team"
MaxMessages 200
Channel company-archives
Master :company-remote:"INBOX/Archives/"
Slave :company-local:"Archives/"
Patterns *
Channel company-lists
Master :company-remote:"INBOX/Lists/"
Slave :company-local:"Lists/"
MaxSize 2m
MaxMessages 500
Patterns *
Channel company-automation
Master :company-remote:"INBOX/Automation/"
Slave :company-local:"Automation/"
MaxSize 1m
MaxMessages 200
Patterns *
Group company
Channel company-inbox
Channel company-main
Channel company-security
Channel company-lists
# Selected Evil from my muttrc
# Fuck with Outlook Users, from: https://calomel.org/mutt_config.html
my_hdr X-Message-Flag: OUTLOOK WARNING!! Use Open Source
my_hdr Reply-By: `date --date="-3 days"`
my_hdr X-MSMail-Priority: High
# Change the signature
send-hook . set signature = ~/Documents/Signatures/long.txt
send-hook @company.com set signature = ~/Documents/Signatures/short.txt
# Back to Inbox
macro index I "<change-folder>!<enter>"
macro pager I "<change-folder>!<enter>"
# Mark all Messages as Read
macro index <esc>m "T~N<enter>;WNT~O<enter>;WO\CT~T<enter>" "mark all messages read"
# Not much
macro index S "<enter-command>unset wait_key<enter><shell-escape>~/.mutt/bin/mutt-notmuch-py ~/Maildir/Searches<enter><change-folder-readonly>+Searches<enter>" "search mail (using notmuch)"
# Archives Like Thunderbird
folder-hook +Inbox save-hook . "=Archives.%[%Y]"
macro index,pager A "s<enter>"
# Delete to Trash except for in Trash
folder-hook . 'macro index d "<save-message>+Trash<enter>"'
folder-hook =Trash 'macro index d <delete-message>'
folder-hook =Automation.* 'macro index d <delete-message>'
folder-hook =Important 'macro index d <noop>'
# - important messages
color index color230 color234 '~s "OSSEC: "'
color index color160 color234 '~s "OSSEC.*Alert level 15"'
color index color166 color234 '~s "OSSEC.*Alert level 1[234]"'
color index color230 color234 '~s "IMPORTANT FILE"'
color index color230 color64 '~s "Your servers have been provisioned!"'
# - Diff Coloring
color body color166 color234 "^@@.*"
color body color160 color234 "^\\-.*"
color body color64 color234 "^\\+.*"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment