blob: a6dd88c08598b49db8e19f54e9c5852852515eed (
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
|
set real_name = "{{ config.mail.name }}"
# Basic settings
set folder = "~/.local/share/mail/mailbox"
set attach_save_dir = "~/Downloads/"
set mbox_type = "Maildir"
set hostname = "{{ config.mail.domain }}"
set from = "{{ config.mail.primary }}"
{% for item in config.mail.aliases %}
alias {{ item.alias }} "{{ config.mail.name }}" "{{ item.email }}"
{% endfor %}
# Folder settings
set record = +Sent
set spoolfile = +INBOX
set postponed = +Drafts
set trash = +Trash
set header_cache = ~/.cache/mutt
mailboxes `find ~/.local/share/mail/mailbox/INBOX -type d -name cur | xargs dirname | xargs` `find ~/.local/share/mail/mailbox -maxdepth 2 -type d -name cur | grep -v INBOX | grep -v Archives | xargs dirname | xargs`
# Sidebar settings
set sidebar_visible
set sidebar_format = "%B%<N? [%N]>%* %S"
set sidebar_short_path = yes
set mail_check_stats
set sidebar_next_new_wrap = yes
set sidebar_width = 20
# Formatting
set sort = threads
set sort_aux=reverse-date
set date_format="%y/%m/%d %I:%M%p"
color status black white
color sidebar_indicator brightblack white
color indicator brightblack white
color header blue default ".*"
color header green default "^(From)"
color header green default "^(Subject)"
color header green default "^(To|CC|BCC)"
color body red default "[\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+" # Email addresses
color body white default "(https?|ftp|file)://[\-\.,/%~_:?&=\#a-zA-Z0-9;+]+" # URL
set new_mail_command = "notify-send -a 'Neomutt' --icon '/usr/share/neomutt/logo/neomutt-32.png' 'New Email in %f' '%n new messages, %u unread' &"
set compose_show_preview = yes
set compose_preview_min_rows = 0
# Mail settings
set mail_check_stats
set mailcap_path = ~/.mutt/mailcap
auto_view text/html
alternative_order text/plain text/html
set sendmail = "msmtp -a mailbox"
# Reply settings
set fast_reply
set forward_format = "Fwd: %s"
set forward_quote
set reverse_name
set include
alternates {% for item in config.mail.aliases -%}
"{{ item.email }}"
{%- endfor %}
# GPG settings
set pgp_sign_as="{{ config.mail.gpg }}"
set crypt_auto_sign
# Bindings
bind index,pager \Ck sidebar-prev
bind index,pager \Cj sidebar-next
bind index,pager \Co sidebar-open
macro index S "<shell-escape>mbsync -a<enter>" "sync email"
macro index a ":set confirmappend=no delete=yes\n<tag-prefix><save-message>+Archive\n<sync-mailbox>:set confirmappend=yes delete=ask-yes\n"
bind editor <Tab> complete-query
bind editor \Ct complete
# Contacts
set query_command = "khard --skip-unparsable email --parsable %s"
|