This commit is contained in:
Bob Mottram 2016-02-11 11:56:20 +00:00
parent ac8945251a
commit 604b83cfa6
2 changed files with 2 additions and 2 deletions

View File

@ -96,7 +96,7 @@ if ! grep -q "Email rule for $EMAILADDRESS -> $GROUP_NAME" $PM; then
echo "# End of rule" >> $PM
else
filter=$(echo "# Email rule for $EMAILADDRESS -> $GROUP_NAME\n:0\n * ^From:.*$EMAILADDRESS\n$LISTDIR/new\n# End of rule\n")
sed "/# encrypt/i ${filter}" $PM
sed -i "/# encrypt/i ${filter}" $PM
fi
chown $MYUSERNAME:$MYUSERNAME $PM
fi

View File

@ -111,7 +111,7 @@ $LISTDIR/new
echo "$filter" >> $PM
else
filter=$(echo "# Email rule for $MAILINGLIST subject [$SUBJECTTAG]\n:0\n * ^Subject:.*()\\\[$SUBJECTTAG\\\]\n$LISTDIR/new\n# End of rule\n")
sed "/# encrypt/i ${filter}" $PM
sed -i "/# encrypt/i ${filter}" $PM
fi
chown $MYUSERNAME:$MYUSERNAME $PM
fi