Insert
This commit is contained in:
parent
ac8945251a
commit
604b83cfa6
|
@ -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
|
||||
|
|
|
@ -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…
Reference in New Issue