aboutsummaryrefslogtreecommitdiffstats
path: root/.mutt/muttrc.bak
blob: 7cca10c540d2b71f89514a1003bfc2a7e5e34ad8 (plain)
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
# $Id$
#
##########################################
## mutt configuration file              ##
##                                      ##
## LIweitiaNux                          ##
## February 6, 2012                     ##
##########################################

### files and directories
set alias_file          = ~/.mutt/aliases
#set header_cache        = ~/.mutt/cache/headers    # needs external db lib
set message_cachedir    = ~/.mutt/cache
set certificate_file    = ~/.mutt/certificates
set mailcap_path        = ~/.mutt/mailcap
set signature           = ~/.mutt/signature
set history_file        = ~/.mutt/history
set tmpdir              = ~/.mutt/tmp

### settings
set mbox_type       = Maildir
set folder          = ~/Maildir
set mail_check      = 300       # how often (in s) look for new mail
set timeout         = 15        # prompt timeout until abort waiting for input
#set sendmail_wait   = -1        # always put sendmail in the bkg without waiting
set sleep_time      = 0         # time to pause while displaying certain info msgs
set history         = 128       # control the size of the string history buffer
set save_history    = 128       # control the size of the 'history_file'
unset confirmappend             # don't ask me if i want to append to mailboxes
set beep_new                    # beep when receive a new msg while mailbox open
set copy                        # always save a copy of outgoing messages
set delete                      # purge deleted messages without asking
set quit            = ask-yes   # ask for confirmation when quit mutt
#set date_format     = "%m/%d/%y at %I:%M"
set wrap_search                 # searches wrap around the end
set help                        # show the help lines
set use_from                    # always generate the `From:' header field
set read_inc        = 25        # specify at which rate to update progress counters
set write_inc       = 25
set print           = ask-yes   # ask me if I really want to print messages
set print_command   = /usr/bin/false    # how to print things (I like to save trees)

### index settings
set index_format = "%4C %Z %{%m/%d} %-15.15F (%4c) %s" # format of the index
set sort        = threads       # primary sorting method
set sort_aux    = reverse-date-received
set uncollapse_jump             # don't collapse on an unread message
set sort_re                     # thread based on regex
set reply_regexp = "^(([Rr][Ee]?(\[[0-9]+\])?: *)?(\[[^]]+\] *)?)*"

### pager settings
set pager_format="-%S- %-20.20f %s"     # format of the pager status bar
set pager_index_lines   = 5     # 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 '+' signs for wrapped lines
set noprompt_after              # ask me for a command after the external pager exits
set quote_regexp = "^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+"

### composing mail
set editor              = "vim +/^$"
set visual              = "vim +/^$"
set realname            = "LIweitiaNux"
set envelope_from               # which from?
set sig_dashes                  # dashes before my 'signature'
set autoedit                    # go to the editor right away when composing
                                # set, cannot use 'send-hooks' depend on recipients
set edit_headers                # show headers when composing
set askcc                       # ask for CC:
set askbcc                      # ask for BCC:
set fcc_attach                  # save attachments with the body
unset mime_forward              # forward attachments as part of body
set forward_format      = "Fwd: %s"
set forward_quote               # include message in forwards
set forward_decode              # decode when forwarding
set attribution         = "On %d, %n wrote: "
#set metoo                       # sends a copy to all recipients and myself
set fast_reply                  # skip to compose when replying
set reply_to                    # reply to 'Reply to:' field
set reverse_name                # reply as whomever it was to
set nosave_empty                # remove files when no messages are left
#set postpone                    # auto postpone message not sent when exit
#set recall                      # prompt to recall postponed messages
set include                     # include message in replies
#set post_indent_string = '---end quoted text---'

### headers settings
ignore *                        # ignore all headers
unignore from: to cc bcc date subject       # show only these headers
hdr_order from: to cc date subject

### mailboxes
# from 'offlineimap'
source ~/.mutt/mailboxes

### gmail, use as default
source ~/.mutt/gmail.muttrc
### account specific sources
folder-hook gmail.*   source ~/.mutt/gmail.muttrc
folder-hook lavabit.* source ~/.mutt/lavabit.muttrc

### aliases
# set alias_file = ~/.mutt/aliases
set sort_alias      = alias     # sort alias file by alias
set reverse_alias               # show names from alias file in index
set alias_format    = "%4n %t %-20a  %r"
source $alias_file              # enable auto-completion

### bindings
bind index,pager \#     noop
bind index i            noop
bind pager i            exit
bind pager /            search
bind pager <up>         previous-line
bind pager <down>       next-line
bind pager k            previous-line
bind pager j            next-line
bind pager gg           top
bind pager G            bottom
bind pager K            previous-undeleted
bind pager J            next-undeleted
bind index gg           first-entry
bind index G            last-entry
bind index K            previous-unread
bind index J            next-unread
bind index,pager R      group-reply

### macros
macro index \Cr "<tag-prefix><clear-flag>N" "mark tagged messages as read"
macro index B   "<limit>~b "                "search message bodies"
macro index I   "<change-folder>!<enter>"   "go to Inbox"
# save a decoded copy in ~
macro index P   "<pipe-message>cat > ~/"    "save message as"
# quick-sync with offlineimap
macro index Z   "<shell-escape>offlineimap -o -q -u ttyui<enter>"    "offlineimap sync ..."

### Misc settings
## mutt colors definitions
source ~/.mutt/colors
#set arrow_cursor                # use -> instead of hiliting the whole line

## zh attachment encodeing
set rfc2047_parameters = yes

## GnuPG
source ~/.mutt/gpg.rc

## auto view
auto_view text/html application/x-gunzip application/x-tar-gz \
        application/msword application/postscript

## MIME multipart/alternative
## The 'multipart/alternative' container type only has child MIME parts
## which represent the same content in an alternative way. often used to
## send HTML msgs which contain an alternative plain text representation.
alternative_order text/plain text/enriched text/html application/postscript

## attachment searching and counting
## attachments { +|- } disposition mime-type
## 'disposition': inline(I), attachment(A)
source ~/.mutt/attachments

## MIME lookup, mime-lookup
## specifies a list of MIME types that should *not* be treated
## according to their mailcap entry
mime_lookup application/octet-stream application/X-Lotus-Manuscript

#
# vim: filetype=muttrc