Roundcube Community Forum

 

markasjunk2: log location

Started by cbrace, August 28, 2011, 08:06:04 AM

Previous topic - Next topic

cbrace

Hi all,

Where is the log of the markasjunk2 plugin stored? I have debugging enabled, but I can find it anywhere.

Thanks

JohnDoh

its in the same place as the rc logs, either [rc root]/logs/ or syslog depending on your setup
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

cbrace

../logs is the first place I looked, but I only see two files there:
$ ls  
errors   sendmail
Weird...

JohnDoh

which driver are you running? different drivers write different debug stuff, if you dont have a driver enabled there isnt any debug info to write.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

cbrace

I am using dspam:
$rcmail_config['markasjunk2_spam_cmd'] = "/usr/local/bin/dspam --user %i  --class=spam --source=error --signature=%xds";
$rcmail_config['markasjunk2_ham_cmd'] = "/usr/local/bin/dspam --user %i --class=ham --source=error --signature=%xds";

cbrace

I am using dspam:
$rcmail_config['markasjunk2_spam_cmd'] = "/usr/local/bin/dspam --user %i  --class=spam --source=error --signature=%xds";
$rcmail_config['markasjunk2_ham_cmd'] = "/usr/local/bin/dspam --user %i --class=ham --source=error --signature=%xds";


Thing is, I had it working perfectly, but then the harddisk in my server died, and I haven't been able to get this plugin working again since reinstalling it. I am hoping the debugging log will help me figure out what is going wrong. For some reason, dspam is not being invoked. :(

JohnDoh

well obvious things first, in your config have you set the driver to cmd_learn and did you check there is nothing in the error log?
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

cbrace

Hi John,

When I mark a message as spam using this plugin, I see a line like this in the markasjunk2 log:
[30-Aug-2011 10:57:21 +0200]: /usr/local/bin/dspam --user [email protected]  --class=spam --source=error --signature=4e5c8cb9114151982012861
[30-Aug-2011 10:57:21 +0200]: array (

Not sure what this means. Any ideas? I thought perhaps the truncated array indicates a missing quote somewhere, but I don't see anything.

Thanks

JohnDoh

sorry i have no idea. only thing i can suggest is that you login as the web server user and then try running that command and see what happens.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...