do not move files from archive which are tagged as spam

This commit is contained in:
2018-12-04 10:45:23 +01:00
parent 7a561a34a8
commit 62af68f521

View File

@@ -64,7 +64,7 @@ while read line; do
# SPAM tag "spam"
elif [ "$TAG" = "$SPAMTAG" ]; then
debugmsg "search spam tagged mails"
HITFILES=$(notmuch search --output=files --exclude=false tag:$SPAMTAG and not path:$SPAMFOL/**) # Files which are tagged with "spam" but not in Spam folder
HITFILES=$(notmuch search --output=files --exclude=false "tag:$SPAMTAG and (not path:$SPAMFOL/**) and (not path:$ARCHFOL/**)") # Files which are tagged with "spam" but not in Spam folder
FOL="$SPAMFOL" # Set destination folder to INBOX.Junk
# ARCHIVE tag "archive"