Skip to content

Instantly share code, notes, and snippets.

@achilleas-k
Created March 31, 2017 09:54
Show Gist options
  • Save achilleas-k/c6365e3fd877e10b0e83d23a3448f75a to your computer and use it in GitHub Desktop.
Save achilleas-k/c6365e3fd877e10b0e83d23a3448f75a to your computer and use it in GitHub Desktop.
# IMAP STUFF
source ~/keys/muttpass
set imap_user = $my_login
set imap_pass = $my_pass
set folder = imaps://mailin.lrz.de:993/
set spoolfile = +Inbox
mailboxes = +Inbox +Inbox.Archive +Inbox.Drafts +Inbox.Sent +Inbox.Junk +Inbox.Trash
set header_cache = ~/.cache/mutt
set message_cachedir = ~/.cache/mutt
set postponed = +Inbox.Drafts
# -----
# SMTP STUFF
set record = +Inbox.Sent
set realname = "Achilleas Koutsou"
set from = "[email protected]"
set use_from = yes
set smtp_url = "smtp://[email protected]:587"
set smtp_pass = $my_pass
set ssl_starttls = yes
# -----
# GENERAL OPTIONS
unset imap_passive
set imap_keepalive = 600
set mail_check = 120
set reflow_text = yes
set reflow_wrap = 78
set pager_stop = yes
set sort = threads
set sort_aux = date
set markers = no
# applies functions to tagged messages if any
set auto_tag = yes
set editor = vim
set save_history = 100
set history_file = "~/.mutt/mutthistory"
# -----
# CUSTOM BINDINGS
# vim style movement
bind generic,pager j next-line
bind generic,pager k previous-line
bind generic,index,pager \Cd half-down
bind generic,index,pager \Cu half-up
bind index j next-entry
bind index k previous-entry
bind generic,index gg first-entry
bind generic,index G last-entry
bind pager gg top
bind pager G bottom
# -----
# SIDEBAR
source ~/.mutt/muttrc-sidebar
# -----
# APPEARANCE
set index_format = "%4C %Z %M %s %* · %-30.30L %-30.30t [%(%Y-%M-%d %H:%m)]"
set status_format = "[%r] [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?%?l? %l?]—%>—[%s/%S]———[%P]———"
set help = no
# -----
# COLOURS
color indicator black cyan
# source ~/.mutt/colorschemes/muttrc-jellybeans
color index white black ~A # general
color index magenta black ~F # flagged
color index red black ~D # deleted (before purging)
color index black white ~T # tagged
color index brightwhite black ~U # unread
# Colours for quoted text
color quoted red black
color quoted1 yellow black
color quoted2 blue black
color quoted3 green black
color quoted4 brightcyan black
color quoted5 red black
color quoted6 yellow black
color quoted7 blue black
color quoted8 green black
color quoted9 brightcyan black
# URLs
color body cyan black "http[s]{0,1}://[^ \"\t\r\n]*"
color body cyan black "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+"
# Email addresses.
color body cyan black "[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+"
# Header
color header color51 black "^from:"
color header color39 black "^to:"
color header color69 black "^cc:"
color header green black "^date:"
color header yellow black "^newsgroups:"
color header yellow black "^reply-to:"
color header brightblack cyan "^subject:"
color header red black "^x-spam-rule:"
color header green black "^x-mailer:"
color header yellow black "^message-id:"
color header yellow black "^Organization:"
color header yellow black "^Organisation:"
color header yellow black "^User-Agent:"
color header yellow black "^message-id: .*pine"
color header yellow black "^X-Fnord:"
color header yellow black "^X-WebTV-Stationery:"
color header red black "^x-spam-rule:"
color header green black "^x-mailer:"
color header yellow black "^message-id:"
color header yellow black "^Organization:"
color header yellow black "^Organisation:"
color header yellow black "^User-Agent:"
color header yellow black "^message-id: .*pine"
color header yellow black "^X-Fnord:"
color header yellow black "^X-WebTV-Stationery:"
color header yellow black "^X-Message-Flag:"
color header yellow black "^X-Spam-Status:"
color header yellow black "^X-SpamProbe:"
color header red black "^X-SpamProbe: SPAM"
# -----
# MACROS
# Archive highlighted message
macro index A ":set confirmappend=no delete=yes\n<save-message>+Inbox.Archive\n<sync-mailbox>:set confirmappend=yes delete=ask-yes\n"
# -----
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment