From bb6425a687ff9ffd8e6fe3ab3e4383df6fef0b63 Mon Sep 17 00:00:00 2001
From: Bob Mottram <bob@robotics.uk.to>
Date: Sat, 4 Apr 2015 13:32:33 +0100
Subject: [PATCH] Invert logic

---
 src/freedombone-unignore | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/freedombone-unignore b/src/freedombone-unignore
index 44e97afe4..e80a49b48 100755
--- a/src/freedombone-unignore
+++ b/src/freedombone-unignore
@@ -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
-- 
GitLab