2012-07-03 17:21:48 +02:00
|
|
|
|
## -*- mode:sh -*- #
|
|
|
|
|
################################################################################
|
|
|
|
|
## Mutt Configuration
|
2012-07-04 13:21:01 +02:00
|
|
|
|
## Date 2012-07-04
|
2012-07-03 17:21:48 +02:00
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
|
|
## Note on folders:
|
|
|
|
|
## These folders are assumed to exist:
|
|
|
|
|
## -~/.mutt = personal stuff (contacts, account information)
|
|
|
|
|
## -~/.mutt.d = public stuff (cache, theme, mailcap)
|
|
|
|
|
## Optional:
|
2012-07-04 13:21:01 +02:00
|
|
|
|
## -~/.mutt.d/hcache = see header_cache below.
|
2012-07-03 17:21:48 +02:00
|
|
|
|
|
|
|
|
|
##-------------------------------------------------------------------------------
|
|
|
|
|
## General options
|
|
|
|
|
##-------------------------------------------------------------------------------
|
|
|
|
|
|
2012-07-04 13:21:01 +02:00
|
|
|
|
## TODO: why doesn't the $EDITOR variable work for connection to emacs daemon?
|
2012-07-09 18:39:55 +02:00
|
|
|
|
# set editor="emacsclient -a \"\" -t"
|
|
|
|
|
set editor=`echo \$EDITOR`
|
2012-07-03 17:21:48 +02:00
|
|
|
|
|
|
|
|
|
## Mailcap
|
2012-07-04 13:21:01 +02:00
|
|
|
|
set mailcap_path = ~/.mutt.d/mailcap
|
|
|
|
|
auto_view text/html
|
|
|
|
|
alternative_order text/plain text/html
|
2012-07-03 17:21:48 +02:00
|
|
|
|
|
2012-07-05 20:02:42 +02:00
|
|
|
|
## Store message headers locally to speed things up.
|
|
|
|
|
## Gentoo wiki says that if a folder is specified, it is even faster.
|
|
|
|
|
## If no folder exists, the cache will be a single file.
|
|
|
|
|
set header_cache = "~/.mutt.d/hcache"
|
|
|
|
|
|
|
|
|
|
## Allow mutt to open new imap connection automatically.
|
|
|
|
|
unset imap_passive
|
|
|
|
|
|
|
|
|
|
## Keep imap connection alive by polling intermittently (time in seconds).
|
|
|
|
|
set imap_keepalive = 300
|
|
|
|
|
|
|
|
|
|
## How often to check for new mail (time in seconds).
|
2012-07-09 18:39:55 +02:00
|
|
|
|
set mail_check = 60
|
2012-07-05 20:02:42 +02:00
|
|
|
|
|
|
|
|
|
## Remove delay between mailbox switches.
|
2012-07-09 18:39:55 +02:00
|
|
|
|
set sleep_time = 0
|
2012-07-05 20:02:42 +02:00
|
|
|
|
|
|
|
|
|
## Beep on new incoming mails.
|
|
|
|
|
set beep_new = "yes"
|
|
|
|
|
|
|
|
|
|
## Mailbox type.
|
|
|
|
|
set mbox_type=Maildir
|
|
|
|
|
|
|
|
|
|
## Headers are editable in editor.
|
|
|
|
|
set edit_headers=yes
|
|
|
|
|
|
2012-09-26 23:06:26 +02:00
|
|
|
|
## Encoding
|
|
|
|
|
set send_charset="us-ascii:utf-8"
|
|
|
|
|
|
2012-07-03 17:21:48 +02:00
|
|
|
|
##-------------------------------------------------------------------------------
|
|
|
|
|
## Multiple accounts
|
|
|
|
|
##-------------------------------------------------------------------------------
|
|
|
|
|
|
2012-06-20 19:07:54 +02:00
|
|
|
|
set my_ac_personal=personal
|
|
|
|
|
set my_ac_work=work
|
|
|
|
|
set my_ac_university=university
|
|
|
|
|
|
2012-07-05 20:02:42 +02:00
|
|
|
|
## Login
|
2012-07-28 20:04:21 +02:00
|
|
|
|
## Store passwords as follows in .mutt-pwds:
|
|
|
|
|
## set my_pw_account = foo
|
|
|
|
|
## Generate a key pair with:
|
|
|
|
|
## gpg2 --gen-key
|
|
|
|
|
## Encrypt them with:
|
|
|
|
|
## gpg2 -e -r <user> ".mutt-pwds"
|
2012-07-10 19:47:23 +02:00
|
|
|
|
source "gpg2 -dq ~/.mutt-pwds.gpg |"
|
2012-07-05 20:02:42 +02:00
|
|
|
|
|
|
|
|
|
## Accounts list
|
2012-06-20 19:07:54 +02:00
|
|
|
|
folder-hook '$my_ac_personal' 'source ~/.mutt/$my_ac_personal'
|
|
|
|
|
folder-hook '$my_ac_work' 'source ~/.mutt/$my_ac_work'
|
|
|
|
|
folder-hook '$my_ac_university' 'source ~/.mutt/$my_ac_university'
|
|
|
|
|
|
2012-07-03 17:21:48 +02:00
|
|
|
|
## Switch to default account on startup
|
2012-09-24 13:25:10 +02:00
|
|
|
|
# source "~/.mutt/$my_ac_personal"
|
2012-07-28 20:04:21 +02:00
|
|
|
|
# source "~/.mutt/$my_ac_work"
|
2012-09-24 13:25:10 +02:00
|
|
|
|
source "~/.mutt/$my_ac_university"
|
2012-06-20 19:07:54 +02:00
|
|
|
|
|
2012-07-05 20:02:42 +02:00
|
|
|
|
## Keys
|
2012-06-20 19:07:54 +02:00
|
|
|
|
macro index <f2> '<sync-mailbox><enter-command>source ~/.mutt/$my_ac_personal<enter><change-folder>!<enter>'
|
|
|
|
|
macro index <f3> '<sync-mailbox><enter-command>source ~/.mutt/$my_ac_work<enter><change-folder>!<enter>'
|
|
|
|
|
macro index <f4> '<sync-mailbox><enter-command>source ~/.mutt/$my_ac_university<enter><change-folder>!<enter>'
|
|
|
|
|
|
2012-07-03 17:21:48 +02:00
|
|
|
|
##------------------------------------------------------------------------------
|
2012-07-05 20:02:42 +02:00
|
|
|
|
## Aliases
|
2012-07-03 17:21:48 +02:00
|
|
|
|
##------------------------------------------------------------------------------
|
2012-06-20 19:07:54 +02:00
|
|
|
|
|
2012-07-05 20:02:42 +02:00
|
|
|
|
set alias_file = "~/.mutt/aliases"
|
|
|
|
|
set sort_alias = alias
|
|
|
|
|
set reverse_alias = yes
|
2012-07-03 17:21:48 +02:00
|
|
|
|
source $alias_file
|
|
|
|
|
|
|
|
|
|
##------------------------------------------------------------------------------
|
|
|
|
|
## Keys
|
|
|
|
|
##------------------------------------------------------------------------------
|
|
|
|
|
|
2012-07-05 20:02:42 +02:00
|
|
|
|
## Manual fetch.
|
2012-07-03 17:21:48 +02:00
|
|
|
|
bind index "^" imap-fetch-mail
|
|
|
|
|
|
2012-07-04 13:21:01 +02:00
|
|
|
|
## Fix the BackSpace bug that happens on some terminals.
|
|
|
|
|
#bind index,pager previous-page
|
|
|
|
|
|
|
|
|
|
## Fix Backspace -- Shell alternative.
|
|
|
|
|
#$ infocmp > termbs.src
|
|
|
|
|
## Changed kbs=^H to kbs=\177, then:
|
|
|
|
|
#$ tic -x termbs.src
|
|
|
|
|
|
2012-07-03 17:21:48 +02:00
|
|
|
|
##------------------------------------------------------------------------------
|
|
|
|
|
## Custom headers for outgoing mail
|
|
|
|
|
##------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
## Undo any custom headers that may have been put in by the global Muttrc
|
|
|
|
|
# unmy_hdr *
|
|
|
|
|
|
|
|
|
|
## Remove any global From: header
|
|
|
|
|
#unset use_from
|
|
|
|
|
## Don't append a domain to my outgoing mails
|
|
|
|
|
#unset use_domain
|
|
|
|
|
|
|
|
|
|
#my_hdr From: Firstname Lastname <myfirstname@mymailserver>
|
|
|
|
|
|
|
|
|
|
## Extra info.
|
2012-07-04 13:21:01 +02:00
|
|
|
|
my_hdr X-Info: Simplicity is the ultimate sophistication.
|
2012-07-03 17:21:48 +02:00
|
|
|
|
|
|
|
|
|
## OS Info.
|
|
|
|
|
# my_hdr X-Operating-System: `uname -s`, kernel `uname -r`
|
|
|
|
|
|
|
|
|
|
## This header only appears to MS Outlook users
|
|
|
|
|
#my_hdr X-Message-Flag: WARNING!! Outlook sucks!
|
2012-07-02 19:11:12 +02:00
|
|
|
|
|
2012-07-03 17:21:48 +02:00
|
|
|
|
## Custom Mail-User-Agent ID.
|
2012-07-04 13:21:01 +02:00
|
|
|
|
set user_agent = yes
|
|
|
|
|
# my_hdr User-Agent: Every email client sucks, this one just sucks less.
|
2012-07-02 19:11:12 +02:00
|
|
|
|
|
2012-07-03 17:21:48 +02:00
|
|
|
|
##------------------------------------------------------------------------------
|
2012-07-04 13:21:01 +02:00
|
|
|
|
## Themes
|
2012-07-03 17:21:48 +02:00
|
|
|
|
##------------------------------------------------------------------------------
|
2012-07-02 19:11:12 +02:00
|
|
|
|
|
2012-07-04 13:21:01 +02:00
|
|
|
|
## TODO: Use these variables to get dynamic column size.
|
|
|
|
|
# set my_col_from = `echo $((30 * ($COLUMNS-34) / 100))`
|
|
|
|
|
# set my_col_subject = `echo $((70 * ($COLUMNS-34) / 100))`
|
|
|
|
|
|
|
|
|
|
## Index format
|
|
|
|
|
## See 'man 3 strftime' and 'man 3 printf'.
|
|
|
|
|
# set index_format="%?M?_%M_ ?%Z %2C %.13d (%-68.68F) %-68.68s %?M?_%M_&(%c/%l?"
|
|
|
|
|
set date_format="%y-%m-%d %T"
|
|
|
|
|
set index_format="%2C | %Z [%d] %-30.30F (%-4.4c) %s"
|
|
|
|
|
|
2012-07-05 20:02:42 +02:00
|
|
|
|
## Colors
|
|
|
|
|
#source "/usr/share/doc/mutt/samples/colors.default"
|
|
|
|
|
#source "/usr/share/doc/mutt/samples/colors.linux"
|
|
|
|
|
source "~/.mutt.d/colors.nongeek"
|