diff --git a/src/freedombone-addemail b/src/freedombone-addemail index 36f7a549..2779977b 100755 --- a/src/freedombone-addemail +++ b/src/freedombone-addemail @@ -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 diff --git a/src/freedombone-addlist b/src/freedombone-addlist index 85b2fb34..684f8447 100755 --- a/src/freedombone-addlist +++ b/src/freedombone-addlist @@ -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