do not move files from archive which are tagged as spam
This commit is contained in:
@@ -64,7 +64,7 @@ while read line; do
|
|||||||
# SPAM tag "spam"
|
# SPAM tag "spam"
|
||||||
elif [ "$TAG" = "$SPAMTAG" ]; then
|
elif [ "$TAG" = "$SPAMTAG" ]; then
|
||||||
debugmsg "search spam tagged mails"
|
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
|
FOL="$SPAMFOL" # Set destination folder to INBOX.Junk
|
||||||
|
|
||||||
# ARCHIVE tag "archive"
|
# ARCHIVE tag "archive"
|
||||||
|
|||||||
Reference in New Issue
Block a user