ambevar-dotfiles/.muttrc

164 lines
5.1 KiB
Plaintext
Raw Normal View History

## -*- mode:sh -*- #
################################################################################
## Mutt Configuration
## Date 2013-01-09
################################################################################
## Note on folders:
## These folders are assumed to exist:
## ~/.mutt: personal stuff (contacts, account information)
## ~/.mutt.d: public stuff (cache, theme, mailcap)
## ~/.mutt.d/hcache: see header_cache below.
##-------------------------------------------------------------------------------
## General options
##-------------------------------------------------------------------------------
## Seems like $EDITOR is internal to Mutt, whereas variable set between
## backquotes are external. Mutt will use env EDITOR variable, so we do not
## really need to set it.
# set editor=`echo \$EDITOR`
# set editor="emacsclient -a \"\" -t"
## Mailcap
set mailcap_path = ~/.mutt.d/mailcap
auto_view text/html
alternative_order text/plain text/html
## 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).
set mail_check = 60
## Remove delay between mailbox switches.
set sleep_time = 0
## Beep on new incoming mails.
set beep_new = "yes"
## Mailbox type.
set mbox_type=Maildir
## Headers are editable in editor.
set edit_headers=yes
## Encoding
set send_charset="us-ascii:utf-8"
##-------------------------------------------------------------------------------
## Multiple accounts
##-------------------------------------------------------------------------------
set my_ac_personal=personal
set my_ac_work=work
set my_ac_university=university
## Login
## Store passwords as follows in .mutt-pwds:
## set my_pw_account = foo
##
## GNUPG: Generate a key pair with:
## gpg2 --gen-key
## Encrypt them with:
## gpg2 -e -r <user> ".mutt-pwds"
##
## CCRYPT:
## ccencrypt .mutt-pwds
source "ccat ~/.mutt-pwds.cpt |"
# source "gpg2 -dq ~/.mutt-pwds.gpg |"
## Accounts list
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'
## Switch to default account on startup
2013-01-04 01:03:03 +01:00
# source "~/.mutt/$my_ac_university"
source "~/.mutt/$my_ac_personal"
# source "~/.mutt/$my_ac_work"
## Keys
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>'
##------------------------------------------------------------------------------
## Aliases
##------------------------------------------------------------------------------
set alias_file = "~/.mutt/aliases"
set sort_alias = alias
set reverse_alias = yes
source $alias_file
##------------------------------------------------------------------------------
## Keys
##------------------------------------------------------------------------------
## Manual fetch.
bind index "^" imap-fetch-mail
## 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
##------------------------------------------------------------------------------
## 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.
my_hdr X-Info: Simplicity is the ultimate sophistication.
## 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!
## Custom Mail-User-Agent ID.
set user_agent = yes
# my_hdr User-Agent: Every email client sucks, this one just sucks less.
##------------------------------------------------------------------------------
## Themes
##------------------------------------------------------------------------------
## 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"
## Colors
source "~/.mutt.d/colorset.sh|"
source "~/.mutt.d/colors.ambrevar"
#source "/usr/share/doc/mutt/samples/colors.default"
#source "/usr/share/doc/mutt/samples/colors.linux"