-
Notifications
You must be signed in to change notification settings - Fork 0
/
muttrc
98 lines (65 loc) · 2.09 KB
/
muttrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
###
#
# Mutt & Maildir
# http://www.elho.net/mutt/maildir/
#
###
## Mutt will use the Maildir format
set mbox_type=Maildir
## Next configure the locations of the common folders:
set folder="~/Maildir"
set mask="!^\\.[^.]"
set mbox="~/Maildir"
set record="+.sent"
set postponed="+.drafts"
set spoolfile="~/Maildir"
## Set up mailboxes by scanning for all subfolders in ~/Maildir:
mailboxes `echo -n "+ "; find ~/Maildir -maxdepth 1 -type d -name ".*" -printf "+'%f' "`
## Add macros to make the folder browser usable
## by always using the mailboxes setup above:
macro index c "<change-folder>?<toggle-mailboxes>" "open a different folder"
macro pager c "<change-folder>?<toggle-mailboxes>" "open a different folder"
## To additionally get straight to the folder browser
## when copying, moving and attaching mail:
macro index C "<copy-message>?<toggle-mailboxes>" "copy a message to a mailbox"
macro index M "<save-message>?<toggle-mailboxes>" "move a message to a mailbox"
macro compose A "<attach-message>?<toggle-mailboxes>" "attach message(s) to this message"
###
#
# Tab Completion Of Addresses
#
###
## Aliases give you tab completion, e.g. in the To: field.
## We won't use them here because we use 'abook' address book.
#set alias_file=~/.mutt/aliases
#set sort_alias= alias
#set reverse_alias=yes
#source $alias_file
## Connect mutt to 'abook' address book,
## so when you are in the To: field you can
## type something then press Tab to get results.
bind editor <Tab> complete-query
set query_command = "abook --mutt-query '%s'"
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"
###
#
# HTML
#
# Also add these lines to .mailcap:
#
# text/html; links %s; nametemplate=%s.html
# text/html; links -dump %s; nametemplate=%s.html; copiousoutput
#
###
auto_view text/html
###
#
# Misc
#
###
## Show/Hide Headers
ignore *
unignore From: To: Reply-To: Cc: Subject: Date:
## Edit with emacs client
set editor = "/usr/bin/emacs %s --eval '(setq make-backup-files nil)'"