Roundcube Community Forum

 

markasjunk2 problem: command run but in log array is empty

Started by alessice, September 16, 2011, 10:06:48 AM

Previous topic - Next topic

alessice

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?

alessice

In log/apache2/error.log I have found this error:

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