Invert logic

This commit is contained in:
Bob Mottram 2015-04-04 13:32:33 +01:00
parent 2be0611b4e
commit bb6425a687
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ PM=/home/$MYUSERNAME/.procmailrc
# unignore if subject line contains text
if [ $SUBJECT_TEXT ]; then
if ! grep -q "Ignore rule for $SUBJECT_TEXT" $PM; then
if grep -q "Ignore rule for $SUBJECT_TEXT" $PM; then
sed -i "/# Ignore rule for $SUBJECT_TEXT/,/# End of ignore rule/d" $PM
fi
fi