commit 379a1011c52edb946aab782fa24c2bb46f9b5c35
parent 270e8db85bd9c09f5ed36d084c79e91dd6af2f73
Author: Alex Balgavy <alex@balgavy.eu>
Date: Wed, 4 May 2022 17:20:22 +0200
notmuch-hook: drafts should not be marked as sent
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/notmuch-hook b/scripts/notmuch-hook
@@ -24,7 +24,7 @@ folders2tags() {
# This will always be read mail
$(build_exclusive_tagstr archive) -- folder:/Archive/
$(build_exclusive_tagstr draft) -- folder:/Drafts/
-$(build_exclusive_tagstr sent) -- from:alex@balgavy.eu or from:a.balgavy@gmail.com or from:a.balgavy@student.vu.nl
+$(build_exclusive_tagstr sent) -- (from:alex@balgavy.eu or from:a.balgavy@gmail.com or from:a.balgavy@student.vu.nl) and (not folder:/Drafts/)
$(build_exclusive_tagstr trash) -- folder:/Trash/ or folder:/Deleted/
$(build_exclusive_tagstr tickets) -- folder:/Tickets/
$(build_exclusive_tagstr spam) -- folder:/Spam/ or folder:/Junk/