Roundcube Community Forum

Third Party Contributions => API Based Plugins => Topic started by: alessice on September 16, 2011, 10:06:48 AM

Title: markasjunk2 problem: command run but in log array is empty
Post by: alessice on September 16, 2011, 10:06:48 AM
Hi,

I'm testing markasjunk2 plugins on rcube 0.5.1. Spamassassin bayes config is correctly, if I run the command as "apache" user works fine:

mail01:/var/www/rcubewebmail/plugins/markasjunk2# su www-data
mail01:~/rcubewebmail/plugins/markasjunk2$ sa-learn -D data --spam /var/www/rcubewebmail/temp/rcmSALearnjyLKTB
Learned tokens from 1 message(s) (1 message(s) examined)
mail01:~/rcubewebmail/plugins/markasjunk2$

but in logs/markasjunk2 file when users run "Mark as Spam" from webmail I have no output in array() from command:

[16-Sep-2011 15:54:46 +0200]: /usr/bin/sa-learn --spam /var/www/rcubewebmail/temp/rcmSALearnb6GJfC
[16-Sep-2011 15:54:46 +0200]: array (
)

and if I re-run the command from shell, sa-learn tell me:

Learned tokens from 1 message(s) (1 message(s) examined) that means that is the first time that learn this message.

Can anyone help me? Why array() is empty?
Title: markasjunk2 problem: command run but in log array is empty
Post by: alessice on September 16, 2011, 10:14:52 AM
In log/apache2/error.log I have found this error:

sh: /sa-learn: No such file or directory, I'm investigating...