Bring back the MUTT
This commit is contained in:
parent
9e4506a7d2
commit
f2d0ba0967
11 changed files with 247 additions and 0 deletions
3
.mutt/.gitignore
vendored
Normal file
3
.mutt/.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
cache
|
||||||
|
temp
|
||||||
|
alias
|
14
.mutt/aethon.muttrc
Normal file
14
.mutt/aethon.muttrc
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
###
|
||||||
|
# aethon.nl specific options
|
||||||
|
###
|
||||||
|
|
||||||
|
set from = "thomas@aethon.nl"
|
||||||
|
set smtp_url = "smtp://thomas@aethon.nl@smtp.gmail.com:587/"
|
||||||
|
set mbox = "+aethon/INBOX"
|
||||||
|
set signature = "~/documents/work/aethon/signature.txt"
|
||||||
|
set postponed = "+aethon/drafts"
|
||||||
|
unset record
|
||||||
|
|
||||||
|
macro index E "<change-folder>+aethon/archive<enter><limit>~B " "search everything"
|
||||||
|
macro index D "<save-message>+aethon/trash<enter>" "move message to the trash"
|
||||||
|
macro index S "<save-message>+aethon/spam<enter>" "mark message as spam"
|
14
.mutt/arch.muttrc
Normal file
14
.mutt/arch.muttrc
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
###
|
||||||
|
# archlinux.us specific options
|
||||||
|
###
|
||||||
|
|
||||||
|
set from = "tom.willemsen@archlinux.us"
|
||||||
|
set smtp_url = "smtp://tom.willemsen@archlinux.us@smtp.gmail.com:587/"
|
||||||
|
set mbox = "+arch/INBOX"
|
||||||
|
set postponed = "+arch/drafts"
|
||||||
|
unset record
|
||||||
|
unset signature
|
||||||
|
|
||||||
|
macro index E "<change-folder>+arch/archive<enter><limit>~B " "search everything"
|
||||||
|
macro index D "<save-message>+arch/trash<enter>" "move message to the trash"
|
||||||
|
macro index S "<save-message>+arch/spam<enter>" "mark message as spam"
|
0
.mutt/certificates
Normal file
0
.mutt/certificates
Normal file
64
.mutt/colors.muttrc
Normal file
64
.mutt/colors.muttrc
Normal file
|
@ -0,0 +1,64 @@
|
||||||
|
###
|
||||||
|
# mutt colors file
|
||||||
|
###
|
||||||
|
|
||||||
|
# set default
|
||||||
|
color normal default default
|
||||||
|
|
||||||
|
# main colors
|
||||||
|
color status color0 default
|
||||||
|
color indicator brightcolor4 color7
|
||||||
|
color tree color5 default
|
||||||
|
color error brightcolor7 default
|
||||||
|
color message color3 default
|
||||||
|
|
||||||
|
# uncolor certain messages
|
||||||
|
uncolor index "~P"
|
||||||
|
uncolor index "~N ~u"
|
||||||
|
uncolor index "~N !~u"
|
||||||
|
uncolor index "~T"
|
||||||
|
uncolor index "~D"
|
||||||
|
|
||||||
|
# and recolor them appropriately
|
||||||
|
color index color3 default "~P"
|
||||||
|
color index color2 default "~u"
|
||||||
|
color index brightcolor2 default "~N ~u" # new ML mail
|
||||||
|
color index brightcolor3 default "~N !~u" # new non-ML mail
|
||||||
|
color index brightcolor5 default "~T"
|
||||||
|
color index color1 default "~D"
|
||||||
|
|
||||||
|
# set up the headers
|
||||||
|
color header color5 color7 "^from:"
|
||||||
|
color header color5 color7 "^to:"
|
||||||
|
color header color5 color7 "^cc:"
|
||||||
|
color header color5 color7 "^date:"
|
||||||
|
color header color5 color7 "^subject:"
|
||||||
|
|
||||||
|
# message bodies
|
||||||
|
color attachment color3 default
|
||||||
|
color search color1 color0
|
||||||
|
color signature color6 default
|
||||||
|
color tilde color4 default
|
||||||
|
|
||||||
|
# urls
|
||||||
|
color body brightcolor4 default "(^|<| )mailto:[^ ]+@[^ ]( |>|$)"
|
||||||
|
color body brightcolor4 default "(^|<| )(http|https|ftp|file|telnet|news|finger)://[^ ]+( |>|$)"
|
||||||
|
|
||||||
|
# smileys
|
||||||
|
color body brightcolor5 default "(^| )+(|[<>|])[8;:](|[^ ])[)(/|DOPS]( |$)+"
|
||||||
|
color body brightcolor5 default "(^| )+[)(/|DOPS](|[^ ])[8;:](|[<>|])( |$)+"
|
||||||
|
|
||||||
|
# *bold*, _underline_ and /italic/
|
||||||
|
color body brightcolor6 default "(^| )\\*[^*]+\\*( |$)"
|
||||||
|
color body brightcolor6 default "(^| )_[^_]+_( |$)"
|
||||||
|
color body brightcolor6 default "(^| )/[^/]+/( |$)"
|
||||||
|
|
||||||
|
# quote blocks
|
||||||
|
color quoted brightcolor0 default
|
||||||
|
color quoted1 brightcolor1 default
|
||||||
|
color quoted2 brightcolor2 default
|
||||||
|
color quoted3 brightcolor3 default
|
||||||
|
color quoted4 brightcolor4 default
|
||||||
|
color quoted5 brightcolor5 default
|
||||||
|
color quoted6 brightcolor6 default
|
||||||
|
color quoted7 brightdefault default
|
14
.mutt/gmail.muttrc
Normal file
14
.mutt/gmail.muttrc
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
###
|
||||||
|
# gmail specific option
|
||||||
|
###
|
||||||
|
|
||||||
|
set from = "ryuslash@gmail.com"
|
||||||
|
set smtp_url = "smtp://ryuslash@gmail.com@smtp.gmail.com:587/"
|
||||||
|
set mbox = "+gmail/INBOX"
|
||||||
|
set postponed = "+gmail/drafts"
|
||||||
|
unset record
|
||||||
|
unset signature
|
||||||
|
|
||||||
|
macro index E "<change-folder>+gmail/archive<enter><limit>~B " "search everything"
|
||||||
|
macro index D "<save-message>+gmail/trash<enter>" "move message to the trash"
|
||||||
|
macro index S "<save-message>+gmail/spam<enter>" "mark message as spam"
|
13
.mutt/iactor.muttrc
Normal file
13
.mutt/iactor.muttrc
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
###
|
||||||
|
# iactor specific options
|
||||||
|
###
|
||||||
|
|
||||||
|
set from = "tom@iactor.nl"
|
||||||
|
set smtp_url = "mail.iactor.nl:2525"
|
||||||
|
set mbox = "+iactor/INBOX"
|
||||||
|
set record = "+iactor/Sent"
|
||||||
|
set postponed = "+iactor/Drafts"
|
||||||
|
unset signature
|
||||||
|
|
||||||
|
macro index E "<change-folder>+iactor/INBOX<enter><limit>~B " "search everything"
|
||||||
|
macro index D "<save-message>+iactor/Trash<enter>" "move message to the trash"
|
1
.mutt/macros
Normal file
1
.mutt/macros
Normal file
|
@ -0,0 +1 @@
|
||||||
|
macro pager \cb <pipe-entry>'urlview'<enter> 'Follow links with urlview'
|
5
.mutt/mailcap
Normal file
5
.mutt/mailcap
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
text/html; lynx -dump %s; nametemplate=%s.html; copiousoutput
|
||||||
|
application/vnd.openxmlformats-officedocument.wordprocessingml.document; libreoffice %s
|
||||||
|
application/vnd.ms-excel; libreoffice %s
|
||||||
|
image/jpeg; feh %s
|
||||||
|
image/png; feh %s
|
119
.mutt/muttrc
Normal file
119
.mutt/muttrc
Normal file
|
@ -0,0 +1,119 @@
|
||||||
|
###
|
||||||
|
# ~/.muttrc
|
||||||
|
###
|
||||||
|
|
||||||
|
# directories and commands
|
||||||
|
set alias_file = ~/.mutt/alias # alias file
|
||||||
|
set header_cache = ~/.mutt/cache/headers # where to store headers
|
||||||
|
set message_cachedir = ~/.mutt/cache/bodies # where to store bodies
|
||||||
|
set certificate_file = ~/.mutt/certificates # where to store certs
|
||||||
|
set mailcap_path = ~/.mutt/mailcap # entries for filetypes
|
||||||
|
set tmpdir = ~/.mutt/temp # where to keep temp files
|
||||||
|
set editor = "emacs -nw" # "/usr/bin/vim +/^$" # use vim and skip to first blank
|
||||||
|
# line
|
||||||
|
|
||||||
|
# main options
|
||||||
|
set mbox_type = Maildir # mailbox type
|
||||||
|
set folder = ~/documents/mail # mailbox location
|
||||||
|
set spoolfile = "+gmail/INBOX" # gmail is the default inbox
|
||||||
|
set timeout = 3 # idle time before scanning
|
||||||
|
set mail_check = 0 # minimum time between scans
|
||||||
|
set sort_alias = alias # sort alias file by alias
|
||||||
|
set reverse_alias # show names from alias file in index
|
||||||
|
unset move # gmail does that
|
||||||
|
set delete # don't ask, just do
|
||||||
|
unset confirmappend # don't ask, just do!
|
||||||
|
set quit # don't ask, just do!!
|
||||||
|
unset mark_old # read/new is good enough for me
|
||||||
|
set beep_new # bell on new mails
|
||||||
|
set pipe_decode # strip headers and eval mimes when piping
|
||||||
|
set thorough_search # strip headers and eval mimes before searching
|
||||||
|
#set ascii_chars = yes
|
||||||
|
|
||||||
|
# index options
|
||||||
|
set sort = threads # like gmail
|
||||||
|
set sort_aux = last-date-received # not like gmail
|
||||||
|
set uncollapse_jump # don't collapse on an unread message
|
||||||
|
#set sort_re # thread based on regex
|
||||||
|
|
||||||
|
# pager options
|
||||||
|
set pager_index_lines = 10 # number of index lines to
|
||||||
|
# show
|
||||||
|
set pager_context = 5 # number of context lines
|
||||||
|
# to show
|
||||||
|
set pager_stop # don't go to next message
|
||||||
|
# automatically
|
||||||
|
set menu_scroll # scroll in menus
|
||||||
|
set smart_wrap # don't split words
|
||||||
|
set tilde # show tildes like in vim
|
||||||
|
unset markers # no ugly plus signs
|
||||||
|
auto_view text/html # view html automatically
|
||||||
|
alternative_order text/plain text/enriched text/html # save html for last
|
||||||
|
set quote_regexp = "^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+| {4}"
|
||||||
|
|
||||||
|
# formats
|
||||||
|
set status_format = "-%r %f [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 date_format = "%d %b %H:%M"
|
||||||
|
set index_format = "%3C %Z %D [%-12.12L] %s"
|
||||||
|
set alias_format = "%4n %t %-20a %r"
|
||||||
|
|
||||||
|
# composing mail
|
||||||
|
set realname = "Tom Willemsen" # who am I?
|
||||||
|
set envelope_from # which from?
|
||||||
|
set sig_dashes # dashes before my sig... sweet
|
||||||
|
set edit_headers # show headers when composing
|
||||||
|
set fast_reply # skip to compose when replying
|
||||||
|
set askcc # ask for CC:
|
||||||
|
set fcc_attach # save attachments with the body
|
||||||
|
unset mime_forward # forward attachments as part fo body
|
||||||
|
set forward_format = "Fwd: %s" # format for subject when forwarding
|
||||||
|
set forward_decode # decode when forwarding
|
||||||
|
set attribution = "On %d, %n wrote:" # set the attribution
|
||||||
|
set reply_to # reply to Reply to: field
|
||||||
|
set reverse_name # reply as whomever it was to
|
||||||
|
set include # include message in replies
|
||||||
|
set forward_quote # include message inforwards
|
||||||
|
|
||||||
|
# headers to show
|
||||||
|
ignore * # ignore all headers
|
||||||
|
unignore from: to: cc: date: subject: # show only these
|
||||||
|
hdr_order from: to: cc: date: subject: # and in this order
|
||||||
|
|
||||||
|
# boxes
|
||||||
|
mailboxes +arch/INBOX #+arch/archive +arch/sent +arch/drafts +arch/spam +arch/trash
|
||||||
|
mailboxes +gmail/INBOX #+gmail/archive +gmail/sent +gmail/drafts +gmail/spam +gmail/trash
|
||||||
|
mailboxes +iactor/INBOX #+iactor/INBOX.Admin +iactor/INBOX.Important +iactor/INBOX.Intern +iactor/INBOX.Taken +iactor/Sent +iactor/Drafts +iactor/Trash
|
||||||
|
mailboxes +aethon/INBOX
|
||||||
|
|
||||||
|
# always sourced
|
||||||
|
source $alias_file # required for functionality
|
||||||
|
source ~/.mutt/colors.muttrc # source colors file
|
||||||
|
source ~/.mutt/gmail.muttrc # source arch as default
|
||||||
|
|
||||||
|
# account specific sources
|
||||||
|
folder-hook arch/* source ~/.mutt/arch.muttrc
|
||||||
|
folder-hook gmail/* source ~/.mutt/gmail.muttrc
|
||||||
|
folder-hook iactor/* source ~/.mutt/iactor.muttrc
|
||||||
|
folder-hook aethon/* source ~/.mutt/aethon.muttrc
|
||||||
|
|
||||||
|
# abook
|
||||||
|
set query_command = "abook --mutt-query '%s'"
|
||||||
|
|
||||||
|
# macros
|
||||||
|
macro index I "<change-folder>!<enter>" "go to Inbox"
|
||||||
|
macro index Z "<shell-escape>/usr/bin/offlineimap -q -o<enter>" "sync IMAP"
|
||||||
|
macro generic,index,pager \ca "<shell-escape>abook<return>" "launch abook"
|
||||||
|
macro index,pager A "<pipe-message>abook --add-email<return>" "add the sender address to abook"
|
||||||
|
macro generic,index,pager <ESC>1 "<change-folder>=gmail/INBOX<return>" "Show gmail inbox"
|
||||||
|
macro generic,index,pager <ESC>2 "<change-folder>=arch/INBOX<return>" "Show arch inbox"
|
||||||
|
macro generic,index,pager <ESC>3 "<change-folder>=aethon/INBOX<return>" "Show aethon inbox"
|
||||||
|
macro generic,index,pager <ESC>4 "<change-folder>=iactor/INBOX<return>" "Show iactor inbox"
|
||||||
|
|
||||||
|
# key bindings
|
||||||
|
bind pager \177 previous-line # default didn't want to work anymore
|
||||||
|
#bind generic i what-key
|
||||||
|
|
||||||
|
# mailing lists
|
||||||
|
subscribe emacs-devel aur-general help-gnu-emacs arch-general
|
||||||
|
subscribe debbugs.gnu.org django-users dev@suckless.org arch-releng
|
||||||
|
subscribe arch-dev-public arch-projects
|
0
.mutt/sig
Normal file
0
.mutt/sig
Normal file
Loading…
Reference in a new issue