Merge branch 'master' of github.com:LukeSmithxyz/mutt-wizard

This commit is contained in:
Luke Smith 2019-08-06 08:15:01 -04:00
commit 681b74aa92
No known key found for this signature in database
GPG Key ID: 4C50B54A911F6252
4 changed files with 24 additions and 14 deletions

View File

@ -81,7 +81,7 @@ To give you an example of the interface, here's an idea:
- `isync`/`mbsync` has replaced `offlineimap` as the backend. Offlineimap was error-prone, bloated, used obsolete Python 2 modules and required separate steps to install the system.
- `mw` is now an installed program instead of just a script needed to be kept in your mutt folder.
- `dialog` is no long used (le bloat) and the interface is simply text commands.
- `dialog` is no longer used (le bloat) and the interface is simply text commands.
- More autogenerated shortcuts that allow quickly moving and copying mail between boxes.
- More elegant attachment handling. Image/video/pdf attachments without relying on the neomutt instance.
- abook integration by default.

8
bin/mw
View File

@ -26,7 +26,7 @@ muttrc="$muttdir/muttrc"
msmtprc="$HOME/.config/msmtp/config"
ssltype="IMAPS" # This is later changed to `None` later in the script if using Protonmail
for x in "/etc/ssl/certs/ca-certificates.crt" "/etc/pki/tls/certs/ca-bundle.crt" "/etc/ssl/ca-bundle.pem" "/etc/pki/tls/cacert.pem" "/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem" "/etc/ssl/cert.pem"
for x in "/etc/ssl/certs/ca-certificates.crt" "/etc/pki/tls/certs/ca-bundle.crt" "/etc/ssl/ca-bundle.pem" "/etc/pki/tls/cacert.pem" "/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem" "/etc/ssl/cert.pem" "/usr/local/share/ca-certificates/"
do
[ -f "$x" ] && sslcert="$x" && break
done || { echo "CA Certificate not found. Please install one or link it to /etc/ssl/certs/ca-certificates.crt" && exit 1 ;}
@ -107,7 +107,7 @@ set folder = \"imaps://$fulladdr@$imap:$iport\"
set imap_user = \"$login\"
set header_cache = $cachedir/$title/headers
set message_cachedir = $cachedir/$title/bodies
set imap_pass = \`pass mutt-wizard-$title\`
set imap_pass = \"\`pass mutt-wizard-$title\`\"
set mbox_type = Maildir
set ssl_starttls = yes
@ -194,7 +194,7 @@ EOF
}
protonfinger() { printf "Getting Protonmail bridge fingerprint...\\n"
fingerprint="$(msmtp --serverinfo --tls --tls-certcheck=off -a "$title")" || return 1
fingerprint="$(msmtp --serverinfo --host=127.0.0.1 --port=1025 --tls --tls-certcheck=off)" || return 1
sed -ibu "s/account $title/&\ntls_trust_file\ntls_fingerprint $fingerprint/" "$msmtprc" ; rm -f "$msmtprc"bu
}
@ -316,7 +316,7 @@ synchronize_flags=true
gpg_path=$GPG"
echo "$nmbasic" > "$NOTMUCH_CONFIG" ;}
trap 'echo -e "\033[0m\n"' INT
trap 'echo -e "\033[0m\n"; exit' STOP INT ABRT KILL
case "$1" in
ls) list ;;

View File

@ -19,10 +19,10 @@ archaeologist.com,imap.mail.com,993,smtp.mail.com,587
arcticmail.com,imap.mail.com,993,smtp.mail.com,587
artlover.com,imap.mail.com,993,smtp.mail.com,587
asia.com,imap.mail.com,993,smtp.mail.com,587
autograf.pl,imap.poczta.onet.pl,993,smtp.poczta.onet.pl,465
auctioneer.net,imap.mail.com,993,smtp.mail.com,587
autistiche.org,mail.autistici.org,993,smtp.autistici.org,465
autistici.org,mail.autistici.org,993,smtp.autistici.org,465
autograf.pl,imap.poczta.onet.pl,993,smtp.poczta.onet.pl,465
autoproduzioni.net,mail.autistici.org,993,smtp.autistici.org,465
bartender.net,imap.mail.com,993,smtp.mail.com,587
bastardi.net,mail.autistici.org,993,smtp.autistici.org,465
@ -35,15 +35,16 @@ brew-meister.com,imap.mail.com,993,smtp.mail.com,587
bruttocarattere.org,mail.autistici.org,993,smtp.autistici.org,465
canaglie.net,mail.autistici.org,993,smtp.autistici.org,465
canaglie.org,mail.autistici.org,993,smtp.autistici.org,465
carleton.ca,imap-mail.outlook.com,993,smtp-mail.outlook.com,587
cash4u.com,imap.mail.com,993,smtp.mail.com,587
cheerful.com,imap.mail.com,993,smtp.mail.com,587
chef.net,imap.mail.com,993,smtp.mail.com,587
chemist.com,imap.mail.com,993,smtp.mail.com,587
chrissx.ga,chrissx.ga,993,chrissx.ga,25
clarkson.edu,imap.gmail.com,993,smtp.gmail.com,587
clerk.com,imap.mail.com,993,smtp.mail.com,587
clubmember.org,imap.mail.com,993,smtp.mail.com,587
cmail.carleton.ca,imap-mail.outlook.com,993,smtp-mail.outlook.com,587
carleton.ca,imap-mail.outlook.com,993,smtp-mail.outlook.com,587
cocaine.ninja,mail.cock.li,993,mail.cock.li,587
cock.email,mail.cock.li,993,mail.cock.li,587
cock.li,mail.cock.li,993,mail.cock.li,587
@ -78,6 +79,7 @@ europe.com,imap.mail.com,993,smtp.mail.com,587
fastmail.com,imap.fastmail.com,993,smtp.fastmail.com,465
fastmail.fm,imap.fastmail.com,993,smtp.fastmail.com,465
firemail.cc,mail.cock.li,993,mail.cock.li,587
forpsi.com,imap.forpsi.com,993,smtp.forpsi.com,465
forthnet.gr,mail.forthnet.gr,993,smtp-auth.forthnet.gr,465
fsmpi.rwth-aachen.de,mail.fsmpi.rwth-aachen.de,993,mail.fsmpi.rwth-aachen.de,465
fsu-jena,exchange.uni-jena.de,993,smtp.uni-jena.de,587
@ -87,10 +89,10 @@ gmx.at,imap.gmx.net,993,mail.gmx.net,587
gmx.com,imap.gmx.net,993,mail.gmx.net,587
gmx.de,imap.gmx.net,993,mail.gmx.net,587
gmx.eu,imap.gmx.net,993,mail.gmx.net,587
gmx.fr,imap.gmx.com,993,mail.gmx.com,587
gmx.info,imap.gmx.net,993,mail.gmx.net,587
gmx.net,imap.gmx.net,993,mail.gmx.net,587
gmx.org,imap.gmx.net,993,mail.gmx.net,587
gmx.fr,imap.gmx.com,993,mail.gmx.com,587
go2.pl,poczta.o2.pl,993,poczta.o2.pl,465
goat.si,mail.cock.li,993,mail.cock.li,587
googlemail.com,imap.googlemail.com,993,smtp.googlemail.com,587
@ -107,11 +109,12 @@ hushmail.com,imap.hushmail.com,993,smtp.hushmail.com,465
illinois.edu, imap.gmail.com,993,smtp.gmail.com,465
iname.com,imap.mail.com,993,smtp.mail.com,587
inf.h-brs.de,imap.inf.h-brs.de,993,smtp.inf.h-brs.de,587
infomaniak.com,imap.infomaniak.com,993,imap.infomaniak.com,587
insiberia.net,mail.autistici.org,993,smtp.autistici.org,465
insicuri.net,mail.autistici.org,993,smtp.autistici.org,465
interactio.io,imap.gmail.com,993,smtp.gmail.com,587
interia.eu,poczta.interia.pl,993,poczta.interia.pl,465
interia.pl,poczta.interia.pl,993,poczta.interia.pl,465
interactio.io,imap.gmail.com,993,smtp.gmail.com,587
inventati.org,mail.autistici.org,993,smtp.autistici.org,465
kipras.org,mail.kipras.org,993,mail.kipras.org,587
krutt.org,mail.autistici.org,993,smtp.autistici.org,465
@ -123,6 +126,7 @@ loves.dicksinhisan.us,mail.cock.li,993,mail.cock.li,587
loves.dicksinmyan.us,mail.cock.li,993,mail.cock.li,587
lukesmith.xyz,mail.lukesmith.xyz,993,mail.lukesmith.xyz,587
mail.com,imap.mail.com,993,smtp.mail.com,587
mail.polimi.it,outlook.office365.com,993,smtp.office365.com,587
mail.ru,imap.mail.ru,993,smtp.mail.ru,465
mailbox.org,imap.mailbox.org,993,smtp.mailbox.org,587
memeware.net,mail.cock.li,993,mail.cock.li,587
@ -138,6 +142,7 @@ nigge.rs,mail.cock.li,993,mail.cock.li,587
nuke.africa,mail.cock.li,993,mail.cock.li,587
nyu.edu,imap.gmail.com,993,smtp.gmail.com,587
o2.pl,poczta.o2.pl,993,poczta.o2.pl,465
odu.edu,imap.gmail.com,993,smtp.gmail.com,587
one.com,imap.one.com,993,send.one.com,465
onenetbeyond.org,mail.autistici.org,993,smtp.autistici.org,465
onet.com.pl,imap.poczta.onet.pl,993,smtp.poczta.onet.pl,465
@ -147,15 +152,14 @@ online.de,imap.1und1.de,993,smtp.1und1.de,465
op.pl,imap.poczta.onet.pl,993,smtp.poczta.onet.pl,465
opoczta.pl,imap.poczta.onet.pl,993,smtp.poczta.onet.pl,465
orange.fr,imap.orange.fr,993,smtp.orange.fr,465
outlook.at,imap-mail.outlook.com,993,smtp-mail.outlook.com,587
outlook.com,imap-mail.outlook.com,993,smtp-mail.outlook.com,587
outlook.de,imap-mail.outlook.com,993,smtp-mail.outlook.com,587
outlook.at,imap-mail.outlook.com,993,smtp-mail.outlook.com,587
paranoici.org,mail.autistici.org,993,smtp.autistici.org,465
pm.me,127.0.0.1,1143,127.0.0.1,1025
poczta.fm,poczta.interia.pl,993,poczta.interia.pl,465
poczta.onet.pl,imap.poczta.onet.pl,993,smtp.poczta.onet.pl,465
polimi.it,outlook.office365.com,993,smtp.office365.com,587
mail.polimi.it,outlook.office365.com,993,smtp.office365.com,587
post.com,imap.mail.com,993,smtp.mail.com,587
posteo.de,posteo.de,993,posteo.de,587
posteo.net,posteo.de,993,posteo.de,587
@ -171,6 +175,7 @@ sapo.pt,imap.sapo.pt,993,smtp.sapo.pt,587
smail.inf.h-brs.de,imap.inf.h-brs.de,993,smtp.inf.h-brs.de,587
southwales.ac.uk,imap.gmail.com,993,smtp.gmail.com,587
spoko.pl,imap.poczta.onet.pl,993,smtp.poczta.onet.pl,465
stevens.edu,imap-mail.outlook.com,993,smpt-mail.outlook.com,587
stronzi.org,mail.autistici.org,993,smtp.autistici.org,465
stud.tu-darmstadt.de,imap.stud.tu-darmstadt.de,993,smtp.tu-darmstadt.de,465
stud.uis.no,outlook.office365.com,993,smtp.office365.com,587
@ -189,8 +194,11 @@ tuhh.de,mail.tu-harburg.de,993,mail.tu-harburg.de,587
txstate.edu,outlook.office365.com,993,smtp.office365.com,587
uach.mx,imap.gmail.com,993,smtp.gmail.com,587
uoregon.edu,imap.uoregon.edu,993,smtp.uoregon.edu,587
etu.upmc.fr,courriel.upmc.fr,993,smtps.upmc.fr,587
uqtr.ca,outlook.office365.com,993,smtp.office365.com,587
usa.com,imap.mail.com,993,smtp.mail.com,587
utas.edu.au,outlook.office365.com,993,smtp.office365.com,587
utdallas.edu,outlook.office365.com,993,smtp.office365.com,587
uw.edu,imap.gmail.com,993,smtp.gmail.com,465
uymail.com,imap.mail.com,993,smtp.mail.com,587
vip.onet.pl,imap.poczta.onet.pl,993,smtp.poczta.onet.pl,465
@ -205,8 +213,9 @@ web.de,imap.web.de,993,smtp.web.de,587
wp.pl,imap.wp.pl,993,smtp.wp.pl,465
writeme.com,imap.mail.com,993,smtp.mail.com,587
ya.ru,imap.yandex.com,993,smtp.yandex.com,587
yahoo.fr,imap.mail.yahoo.com,993,smtp.mail.yahoo.com,587
yahoo.com,imap.mail.yahoo.com,993,smtp.mail.yahoo.com,587
yahoo.fr,imap.mail.yahoo.com,993,smtp.mail.yahoo.com,587
yahoo.gr,imap.mail.yahoo.com,993,smtp.mail.yahoo.com,587
yandex.by,imap.yandex.com,993,smtp.yandex.com,587
yandex.com,imap.yandex.com,993,smtp.yandex.com,587
yandex.kz,imap.yandex.com,993,smtp.yandex.com,587
@ -214,4 +223,4 @@ yandex.net,imap.yandex.com,993,smtp.yandex.com,587
yandex.ru,imap.yandex.com,993,smtp.yandex.com,587
yandex.ua,imap.yandex.com,993,smtp.yandex.com,587
zoho.com,imap.zoho.com,993,smtp.zoho.com,465
tquad.ai,imap.mail.eu-west-1.awsapps.com,993,smtp.mail.eu-west-1.awsapps.com,465

1 ADDRESS IMAP imap port SMTP smtp port
19 arcticmail.com imap.mail.com 993 smtp.mail.com 587
20 artlover.com imap.mail.com 993 smtp.mail.com 587
21 asia.com imap.mail.com 993 smtp.mail.com 587
autograf.pl imap.poczta.onet.pl 993 smtp.poczta.onet.pl 465
22 auctioneer.net imap.mail.com 993 smtp.mail.com 587
23 autistiche.org mail.autistici.org 993 smtp.autistici.org 465
24 autistici.org mail.autistici.org 993 smtp.autistici.org 465
25 autograf.pl imap.poczta.onet.pl 993 smtp.poczta.onet.pl 465
26 autoproduzioni.net mail.autistici.org 993 smtp.autistici.org 465
27 bartender.net imap.mail.com 993 smtp.mail.com 587
28 bastardi.net mail.autistici.org 993 smtp.autistici.org 465
35 bruttocarattere.org mail.autistici.org 993 smtp.autistici.org 465
36 canaglie.net mail.autistici.org 993 smtp.autistici.org 465
37 canaglie.org mail.autistici.org 993 smtp.autistici.org 465
38 carleton.ca imap-mail.outlook.com 993 smtp-mail.outlook.com 587
39 cash4u.com imap.mail.com 993 smtp.mail.com 587
40 cheerful.com imap.mail.com 993 smtp.mail.com 587
41 chef.net imap.mail.com 993 smtp.mail.com 587
42 chemist.com imap.mail.com 993 smtp.mail.com 587
43 chrissx.ga chrissx.ga 993 chrissx.ga 25
44 clarkson.edu imap.gmail.com 993 smtp.gmail.com 587
45 clerk.com imap.mail.com 993 smtp.mail.com 587
46 clubmember.org imap.mail.com 993 smtp.mail.com 587
47 cmail.carleton.ca imap-mail.outlook.com 993 smtp-mail.outlook.com 587
carleton.ca imap-mail.outlook.com 993 smtp-mail.outlook.com 587
48 cocaine.ninja mail.cock.li 993 mail.cock.li 587
49 cock.email mail.cock.li 993 mail.cock.li 587
50 cock.li mail.cock.li 993 mail.cock.li 587
79 fastmail.com imap.fastmail.com 993 smtp.fastmail.com 465
80 fastmail.fm imap.fastmail.com 993 smtp.fastmail.com 465
81 firemail.cc mail.cock.li 993 mail.cock.li 587
82 forpsi.com imap.forpsi.com 993 smtp.forpsi.com 465
83 forthnet.gr mail.forthnet.gr 993 smtp-auth.forthnet.gr 465
84 fsmpi.rwth-aachen.de mail.fsmpi.rwth-aachen.de 993 mail.fsmpi.rwth-aachen.de 465
85 fsu-jena exchange.uni-jena.de 993 smtp.uni-jena.de 587
89 gmx.com imap.gmx.net 993 mail.gmx.net 587
90 gmx.de imap.gmx.net 993 mail.gmx.net 587
91 gmx.eu imap.gmx.net 993 mail.gmx.net 587
92 gmx.fr imap.gmx.com 993 mail.gmx.com 587
93 gmx.info imap.gmx.net 993 mail.gmx.net 587
94 gmx.net imap.gmx.net 993 mail.gmx.net 587
95 gmx.org imap.gmx.net 993 mail.gmx.net 587
gmx.fr imap.gmx.com 993 mail.gmx.com 587
96 go2.pl poczta.o2.pl 993 poczta.o2.pl 465
97 goat.si mail.cock.li 993 mail.cock.li 587
98 googlemail.com imap.googlemail.com 993 smtp.googlemail.com 587
109 illinois.edu imap.gmail.com 993 smtp.gmail.com 465
110 iname.com imap.mail.com 993 smtp.mail.com 587
111 inf.h-brs.de imap.inf.h-brs.de 993 smtp.inf.h-brs.de 587
112 infomaniak.com imap.infomaniak.com 993 imap.infomaniak.com 587
113 insiberia.net mail.autistici.org 993 smtp.autistici.org 465
114 insicuri.net mail.autistici.org 993 smtp.autistici.org 465
115 interactio.io imap.gmail.com 993 smtp.gmail.com 587
116 interia.eu poczta.interia.pl 993 poczta.interia.pl 465
117 interia.pl poczta.interia.pl 993 poczta.interia.pl 465
interactio.io imap.gmail.com 993 smtp.gmail.com 587
118 inventati.org mail.autistici.org 993 smtp.autistici.org 465
119 kipras.org mail.kipras.org 993 mail.kipras.org 587
120 krutt.org mail.autistici.org 993 smtp.autistici.org 465
126 loves.dicksinmyan.us mail.cock.li 993 mail.cock.li 587
127 lukesmith.xyz mail.lukesmith.xyz 993 mail.lukesmith.xyz 587
128 mail.com imap.mail.com 993 smtp.mail.com 587
129 mail.polimi.it outlook.office365.com 993 smtp.office365.com 587
130 mail.ru imap.mail.ru 993 smtp.mail.ru 465
131 mailbox.org imap.mailbox.org 993 smtp.mailbox.org 587
132 memeware.net mail.cock.li 993 mail.cock.li 587
142 nuke.africa mail.cock.li 993 mail.cock.li 587
143 nyu.edu imap.gmail.com 993 smtp.gmail.com 587
144 o2.pl poczta.o2.pl 993 poczta.o2.pl 465
145 odu.edu imap.gmail.com 993 smtp.gmail.com 587
146 one.com imap.one.com 993 send.one.com 465
147 onenetbeyond.org mail.autistici.org 993 smtp.autistici.org 465
148 onet.com.pl imap.poczta.onet.pl 993 smtp.poczta.onet.pl 465
152 op.pl imap.poczta.onet.pl 993 smtp.poczta.onet.pl 465
153 opoczta.pl imap.poczta.onet.pl 993 smtp.poczta.onet.pl 465
154 orange.fr imap.orange.fr 993 smtp.orange.fr 465
155 outlook.at imap-mail.outlook.com 993 smtp-mail.outlook.com 587
156 outlook.com imap-mail.outlook.com 993 smtp-mail.outlook.com 587
157 outlook.de imap-mail.outlook.com 993 smtp-mail.outlook.com 587
outlook.at imap-mail.outlook.com 993 smtp-mail.outlook.com 587
158 paranoici.org mail.autistici.org 993 smtp.autistici.org 465
159 pm.me 127.0.0.1 1143 127.0.0.1 1025
160 poczta.fm poczta.interia.pl 993 poczta.interia.pl 465
161 poczta.onet.pl imap.poczta.onet.pl 993 smtp.poczta.onet.pl 465
162 polimi.it outlook.office365.com 993 smtp.office365.com 587
mail.polimi.it outlook.office365.com 993 smtp.office365.com 587
163 post.com imap.mail.com 993 smtp.mail.com 587
164 posteo.de posteo.de 993 posteo.de 587
165 posteo.net posteo.de 993 posteo.de 587
175 smail.inf.h-brs.de imap.inf.h-brs.de 993 smtp.inf.h-brs.de 587
176 southwales.ac.uk imap.gmail.com 993 smtp.gmail.com 587
177 spoko.pl imap.poczta.onet.pl 993 smtp.poczta.onet.pl 465
178 stevens.edu imap-mail.outlook.com 993 smpt-mail.outlook.com 587
179 stronzi.org mail.autistici.org 993 smtp.autistici.org 465
180 stud.tu-darmstadt.de imap.stud.tu-darmstadt.de 993 smtp.tu-darmstadt.de 465
181 stud.uis.no outlook.office365.com 993 smtp.office365.com 587
194 txstate.edu outlook.office365.com 993 smtp.office365.com 587
195 uach.mx imap.gmail.com 993 smtp.gmail.com 587
196 uoregon.edu imap.uoregon.edu 993 smtp.uoregon.edu 587
197 etu.upmc.fr courriel.upmc.fr 993 smtps.upmc.fr 587
198 uqtr.ca outlook.office365.com 993 smtp.office365.com 587
199 usa.com imap.mail.com 993 smtp.mail.com 587
200 utas.edu.au outlook.office365.com 993 smtp.office365.com 587
201 utdallas.edu outlook.office365.com 993 smtp.office365.com 587
202 uw.edu imap.gmail.com 993 smtp.gmail.com 465
203 uymail.com imap.mail.com 993 smtp.mail.com 587
204 vip.onet.pl imap.poczta.onet.pl 993 smtp.poczta.onet.pl 465
213 wp.pl imap.wp.pl 993 smtp.wp.pl 465
214 writeme.com imap.mail.com 993 smtp.mail.com 587
215 ya.ru imap.yandex.com 993 smtp.yandex.com 587
yahoo.fr imap.mail.yahoo.com 993 smtp.mail.yahoo.com 587
216 yahoo.com imap.mail.yahoo.com 993 smtp.mail.yahoo.com 587
217 yahoo.fr imap.mail.yahoo.com 993 smtp.mail.yahoo.com 587
218 yahoo.gr imap.mail.yahoo.com 993 smtp.mail.yahoo.com 587
219 yandex.by imap.yandex.com 993 smtp.yandex.com 587
220 yandex.com imap.yandex.com 993 smtp.yandex.com 587
221 yandex.kz imap.yandex.com 993 smtp.yandex.com 587
223 yandex.ru imap.yandex.com 993 smtp.yandex.com 587
224 yandex.ua imap.yandex.com 993 smtp.yandex.com 587
225 zoho.com imap.zoho.com 993 smtp.zoho.com 465
226 tquad.ai imap.mail.eu-west-1.awsapps.com 993 smtp.mail.eu-west-1.awsapps.com 465

View File

@ -21,6 +21,7 @@ set forward_format = "Fwd: %s" # format of subject when forwarding
set forward_quote # include message in forwards
set reverse_name # reply as whomever it was to
set include # include message in replies
set mail_check=60 # to avoid lags using IMAP with some email providers (yahoo for example)
auto_view text/html # automatically show html (mailcap uses w3m)
auto_view application/pgp-encrypted
alternative_order text/plain text/enriched text/html
@ -62,7 +63,7 @@ bind editor <Tab> complete-query
macro index,pager a "|abook --add-email\n" 'add sender to abook'
macro index \Cr "T~U<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" "mark all messages as read"
macro index O "<shell-escape>mailsync -Va<enter>" "run offlineimap to sync all mail"
macro index \Cf "<enter-command>unset wait_key<enter><shell-escape>read -p 'Enter a search term to find with notmuch: ' x; echo \$x >~/.cache/mutt_terms<enter><limit>~i \"\`notmuch search --output=messages \$(cat ~/.cache/mutt_terms) | head -n 600 | perl -le '@a=<>;chomp@a;s/\^id:// for@a;$,=\"|\";print@a'\`\"<enter>" "show only messages matching a notmuch pattern"
macro index \Cf "<enter-command>unset wait_key<enter><shell-escape>read -p 'Enter a search term to find with notmuch: ' x; echo \$x >~/.cache/mutt_terms<enter><limit>~i \"\`notmuch search --output=messages \$(cat ~/.cache/mutt_terms) | head -n 600 | perl -le '@a=<>;s/\^id:// for@a;$,=\"|\";print@a' | perl -le '@a=<>; chomp@a; s/\\+/\\\\+/ for@a;print@a' \`\"<enter>" "show only messages matching a notmuch pattern"
macro index A "<limit>all\n" "show all messages (undo limit)"
# Sidebar mappings