aboutsummaryrefslogtreecommitdiffstats
path: root/bin/tagmail
diff options
context:
space:
mode:
authorÓscar Nájera <hi@oscarnajera.com>2021-01-04 13:42:52 +0100
committerÓscar Nájera <hi@oscarnajera.com>2021-01-04 13:42:52 +0100
commitf82c1391f230e353dcfce0831fb8ed2f8ade46d1 (patch)
tree3021978d17447d4291595e87fb64b77a40422c71 /bin/tagmail
parent3a8b6767b1ae97d4486ed6efd6f8cdc302ccf083 (diff)
downloaddotfiles-f82c1391f230e353dcfce0831fb8ed2f8ade46d1.tar.gz
dotfiles-f82c1391f230e353dcfce0831fb8ed2f8ade46d1.tar.bz2
dotfiles-f82c1391f230e353dcfce0831fb8ed2f8ade46d1.zip
Use just one format instruction for sent search
Diffstat (limited to 'bin/tagmail')
-rwxr-xr-xbin/tagmail4
1 files changed, 1 insertions, 3 deletions
diff --git a/bin/tagmail b/bin/tagmail
index f7836b1..bd58d40 100755
--- a/bin/tagmail
+++ b/bin/tagmail
@@ -182,9 +182,7 @@
(display (colorize-string "[Inbox]\n" 'BOLD 'YELLOW))
(let* ((my-emails (list "hi@oscarnajera.com" "hello@oscarnajera.com" "najera.oscar@gmail.com"
"on@mathias-kettner.de" "oscar.najera@tribe29.com"))
- (sent (format #f "(~A) AND NOT (~A)"
- (format #f "~{from:~a~^ OR ~}" my-emails)
- (format #f "~{to:~a~^ OR ~}" my-emails))))
+ (sent (format #f "(~{from:~a~^ OR ~}) AND NOT (~:*~{to:~a~^ OR ~})" my-emails)))
(notmuch-tag options ffi-db `(("+sent" ,sent "Emails I have sent")
("+inbox" "*" "Inbox for the rest")) #t)))