Browse Source

Insert

jessie
Bob Mottram 6 years ago
parent
commit
604b83cfa6
  1. 2
      src/freedombone-addemail
  2. 2
      src/freedombone-addlist

2
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

2
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

Loading…
Cancel
Save