Browse Source

do not move files from archive which are tagged as spam

master
mxmehl 3 years ago
parent
commit
62af68f521
Signed by: mxmehl GPG Key ID: 2704E4AB371E2E92
  1. 2
      astroid/scripts/move-tag.sh

2
astroid/scripts/move-tag.sh

@ -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"

Loading…
Cancel
Save