Skip to content
Snippets Groups Projects
Commit bb6425a6 authored by Bob Mottram's avatar Bob Mottram
Browse files

Invert logic

parent 2be0611b
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment