summaryrefslogtreecommitdiff
path: root/lib/muttrc
blob: ebbcdb0d9c5756d46d778e78f6bd82f8b28bf470 (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
# vim: filetype=muttrc

set realname = "Ben Sima"
set mbox_type = Maildir

my_hdr X-URL: https://www.bsima.me
# my_hdr Bcc: ben@bsima.me

set editor = "vim -f"
set mail_check = 60
set timeout = 60
set header_cache = ~/.mutt/cache/headers
set message_cachedir = ~/.mutt/cache/bodies
set certificate_file =~/.mutt/certificates

# Contacts
set display_filter=~/config/mutt/generate-contacts.sh
set alias_file=~/contacts.txt
source $alias_file

set move = no
set include
set auto_tag = yes
bind editor ^T complete
set pager_index_lines = 10
set implicit_autoview = yes

set sort_aux = 'last-date-received'
set index_format = "[%Z]  %D  %-20.20F  %s"
set date_format = "%m.%d..%H.%M"
set nostrict_threads
set sort = 'threads'
set markers = no # hide line-wrap markers

# Ignore all headers
ignore *

# Then un-ignore the ones I want to see
unignore From:
unignore To:
unignore Reply-To:
unignore Subject:
unignore Date:
unignore Organization:
unignore Newsgroups:
unignore CC:
unignore BCC:
unignore User-Agent:

# Now order the visable header lines
hdr_order Date: From: To: CC: BCC: Reply-To: Subject: Organization: User-Agent:

set forward_format = "Fwd: %s"
set fast_reply=yes
set forward_decode                   # decode when forwarding
set reply_to                         # reply to Reply to: field
set use_envelope_from = yes
set envelope_from = yes
set text_flowed = yes

# View multimedia emails

alternative_order text/plain text/html *
auto_view text/x-vcard text/html text/enriched
macro index,pager \cb "<pipe-message> urlscan<Enter>" "Extract URLs"
macro attach,compose \cb "<pipe-entry> urlscan<Enter>" "Extract URLs"

# Code review stuff
macro index ,A "| git am -s" "apply patch"

# Searching/tagging with notmuch
#
# - https://neomutt.org/feature/notmuch
# - https://wiki.archlinux.org/index.php/Notmuch#Integrating_with_NeoMutt

set virtual_spoolfile=yes

set nm_default_uri = "notmuch:///home/ben/Mail"
virtual-mailboxes "inbox" "notmuch://?query=tag:inbox"
virtual-mailboxes "archive" "notmuch://?query=tag:archive"
virtual-mailboxes "jobs" "notmuch://?query=tag:jobs"
virtual-mailboxes "todo" "notmuch://?query=tag:todo"
virtual-mailboxes "newsletters" "notmuch://?query=tag:newsletters"
virtual-mailboxes "github" "notmuch://?query=tag:github"

macro index,pager S "<vfolder-from-query>" "search mailbox"
macro index,pager A "<modify-labels>+archive -unread -inbox\n" "archive message"
macro index,pager c "<change-vfolder>?" "change to vfolder overview"

bind index,pager y modify-labels
bind index,pager + entire-thread
bind index,pager X change-vfolder

## Accounts

set my_pw = "`pass bnet/helium/mail/ben`"

set imap_user = "ben@bsima.me"
set imap_pass = $my_pw

set sendmail = msmtpq

set from = "ben@bsima.me"
set use_from = yes

#set smtp_url = "smtp://ben@bsima.me@mail.bsima.me:587"
#set smtp_pass = $my_pw

set ssl_starttls = "yes"

set folder = "~/Mail/ben@bsima.me"
set spoolfile = "+INBOX"
set postponed = "+Drafts"
set record = "+Sent"
set imap_pipeline_depth = 0