summaryrefslogtreecommitdiffstats
path: root/.config/neomutt/neomuttrc
blob: 386b7fdf26597c62c5e1711614ea2849ac42b1e9 (plain) (blame)
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
source "~/.config/neomutt/mail-personal"

#force tls
set ssl_verify_host = yes
set ssl_force_tls = yes

# notmuch
set virtual_spoolfile = yes
set nm_query_type = threads
set nm_default_url = "notmuch:///home/qwd/.mail"

set spoolfile = "+INBOX"
set mbox = "+INBOX"
set postponed = "+Drafts"
set record = "+Sent"
set trash = "+Trash"
set mail_check_stats = yes
set imap_delim_chars = "aa"

# dl
set mail_check = 90
set sleep_time = 0
set timeout = 300
set beep = no
set edit_headers = yes
set fast_reply = yes
set forward_quote = yes
set include = yes
set pipe_decode = yes
set postpone = no
set recall = no
set reflow_space_quotes = yes
set reply_to = yes
set reverse_name = yes
set reverse_name = yes
set sig_dashes = no
set sort_re = yes

set charset = "utf-8"
set date_format = "%d %b %Y, %H:%M"
set index_format = "%4C  %Z  %{$date_format}   %-25.25L  (%?l?%4l&%4c?)  %s"
set quote_regex = "^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+"
set reply_regex = "^(([Rr][Ee]?(\[[0-9]+\])?: *)?(\[[^]]+\] *)?)*"
set send_charset = "utf-8:iso-8859-1:us-ascii"
set signature = "~/.signature"
set header_cache = "~/.cache/neomutt"
set message_cachedir = "$header_cache"
set mail_check_stats

# forgotten attachment
set abort_noattach_regex = "\\<(attach|attached|attachments?|attaché|attachés|attache|attachons|joint|jointe|joints|jointes|joins|joignons)\\>"
set abort_noattach = ask-yes

# headers
ignore *
unignore from date subject to cc
unignore organization organisation
unignore x-mailer: x-newsreader: x-mailing-list:
unignore posted-to: list-id:

# threads
set sort ="threads"
set sort_aux = "reverse-last-date-received"
set strict_threads ="yes"
set collapse_unread = no

# sidebar
set mbox_type = maildir
set sidebar_visible = yes
set sidebar_short_path = yes
set sidebar_sort_method = "unsorted"
set sidebar_delim_chars = "/"
set sidebar_format = "%D %?F?[%F]?%* %4N|%4S"
set sidebar_folder_indent = yes
set sidebar_indent_string = ">  "

# keybinds
bind editor <space> noop
bind editor "> " quote-char
bind editor ^T complete-query
bind editor <Tab> complete
bind index G last-entry
bind index \CR imap-fetch-mail
bind index g noop
bind index gg first-entry
bind index - collapse-thread
bind index _ collapse-all
bind pager c imap-fetch-mail
bind pager,attach h exit
bind attach <return> view-mailcap
bind attach l view-mailcap
bind pager j next-line
bind pager k previous-line
bind pager l view-attachments
bind index D delete-message
bind index U undelete-message
bind index h noop
bind index l display-message
bind browser h goto-parent
bind browser l select-entry
bind index \CL limit
bind pager,browser gg top-page
bind pager,browser G bottom-page
bind index,pager R group-reply
bind index,pager g group-chat-reply
bind index,pager K sidebar-prev
bind index,pager J sidebar-next
bind index,pager O sidebar-open
bind index,pager,browser d half-down
bind index,pager,browser u half-up
bind index,pager @ compose-to-sender

# macro
macro index S "<shell-escape>notmuch new<enter>" "sync email"

# colors
color hdrdefault color07 default

# hooks
account-hook . 'echo `notmuch new >/dev/null 2>&1`'
timeout-hook 'echo "`notmuch new >/dev/null 2>&1`"'
remember that computers suck.