13 Feb
2017
13 Feb
'17
12:56 a.m.
On 2017-02-12 23:00:49 +0100, HÃ¥kon Alstadheim wrote:
Just follow the wiki and replace sa-learn scripts with calling dspam. Dspam direct pipe needs mail-line-endings (\r\n) translated into unix line-endings (\r).
tbh ... what do you do about mails which just use \r as separator?
s|\r\n|\n| is safer.
darix
like so:
----- learn-spam.sh --------- #!/bin/sh sed -e 's/\r$//' | /usr/bin/dspam --source=error --class=spam
----- learn-ham.sh ---------- #!/bin/sh sed -e 's/\r$//' | /usr/bin/dspam --source=error --class=innocent
Theese will be invoked with the owner of the mailbox as current uid, so that is all.
-- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org