summaryrefslogtreecommitdiff
path: root/mutt/.mutt/muttrc
blob: c04a2f49273579e7b8804b9204c581f5d374d4e9 (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
set mbox_type                 = Maildir
set folder                    = "~/.mail/"
set alias_file                = ~/.mutt/alias
set header_cache              = ~/.mutt/cache/headers
set mailcap_path              = ~/.mutt/mailcap
set signature                 = ~/.mutt/sig
set tmpdir                    = /tmp/pks/mutt
set use_from                  = yes
set use_envelope_from         = yes
set sort                      = threads
set charset                   = "utf-8"
set send_charset              = "utf-8"
set config_charset            = "utf-8"
set read_inc                  = 2500
set sleep_time                = 0
set rfc2047_parameters        = yes
set mail_check_stats          = yes
set mail_check_stats_interval = 3
set mail_check                = 3
set edit_headers              = yes
set reverse_name              = yes
set reverse_realname          = yes
set weed                      = yes
set fast_reply                = yes
set include                   = yes

# formats
set date_format  = "!%b %d %Y"
set index_format = " %Z  %D  %-16.16L  %s"
folder-hook */Inbox 'set date_format="!%b %d"'
folder-hook */Archive 'set date_format="!%Y-%m-%d"'
set attribution = "On %{%Y-%m-%d}, at %{%H:%M:%S %Z}, %a wrote:"

# auto view
auto_view text/html

# bindings
bind index F "flag-message"

# macros
set wait_key = no
macro index,pager G "<shell-escape>imapfilter -c ~/.imapfilter/primary.lua &>/dev/null && mbsync primary && notmuch new 2>/dev/null<enter>"
#macro index,pager H "<shell-escape>imapfilter -c ~/.imapfilter/secondary.lua &>/dev/null     && mbsync secondary     && notmuch new 2>/dev/null<enter>"
macro index,pager J "<shell-escape>mbsync -a && notmuch new 2>/dev/null<enter>"
macro index <esc>m "T~N<enter>;WNT~O<enter>;WO\CT~T<enter>" "mark all messages read"
macro index c "<change-folder>?<toggle-mailboxes>" "open a different folder"
macro pager c "<change-folder>?<toggle-mailboxes>" "open a different folder"
macro index M "T.*\n;WN" "Mark all messages as read"

# abook
set query_command = "abook --mutt-query '%s'"
bind editor <tab> complete-query

# headers
ignore *
unignore from date subject to cc
unhdr_order *
hdr_order from: to: cc: bcc: date: subject:
alternative_order text/plain text/enriched text/html

# primary mailboxes
mailboxes =primary/Inbox =primary/Drafts =primary/Lists =primary/Archive

# secondary mailboxes
#mailboxes " "
#mailboxes =secondary/Inbox =secondary/Drafts =secondary/Archive

# folder hooks
folder-hook primary/* source ~/.mutt/primary.rc
#folder-hook secondary/* source ~/.mutt/secondary.rc

# notmuch
set my_notmuchfs_folder="/tmp/pks/notmuchfs"
macro index "," "<shell-escape>prompt_mkdir $my_notmuchfs_folder<enter><change-folder>~/.mail/current_search<enter>" "Search"

# status bar
set status_chars  = " *%A"

# html
auto_view text/html
alternative_order text/plain text/enriched text/html
bind attach <return>    view-mailcap

# sidebar
bind index,pager <down>   sidebar-next
bind index,pager <up>     sidebar-prev
bind index,pager <right>  sidebar-open
set sidebar_visible = yes
set sidebar_width   = 16
set sidebar_format  = '%B%> %!%?N? %N? '
set sidebar_short_path = yes
set sidebar_folder_indent = yes
set sidebar_indent_string =  ' '
set sidebar_new_mail_only = no

# pager
set pager_index_lines = 20
set pager_context = 3
set pager_stop
set menu_scroll
set tilde
unset markers
unset help

# ui
source ~/.mutt/ui.rc

# default is primary
source ~/.mutt/primary.rc