Roundcube Community Forum

Release Support => Pending Issues => Topic started by: mgdb on September 14, 2011, 05:16:44 AM

Title: markasjunk2
Post by: mgdb on September 14, 2011, 05:16:44 AM
Hello !

I use the plugin markasjunk2.
When a junk mail tagget ***SPAM*** by spamassassin is arrived, it is moved automaticaly to the Junk folder. That's right
But, When it is a false negative, I wanted to move the mail tagget ***SPAM*** to my INBOX, the tag is already in the header and the mail arrived in the junk mail again.
My question is : how can I move the false negative to my inbox and delete the flag ?

Thanks
Marie
Title: markasjunk2
Post by: JohnDoh on September 14, 2011, 08:55:00 AM
you can use a driver in the markasjunk2 plugin do to anything you want, there are also options int he config file to add/remove a flag from the message. just out of interest what is moving your emails about? I mean why would any one have a system which deliberatly overrides what the user has done?
Title: markasjunk2
Post by: mgdb on September 15, 2011, 10:10:11 AM
Hello,
Thanks for reply.

I want the tagged message moved directly in the Junk folder to clear the mail box of each user.
The messages are not deleted, the users can browse the junk folder and catch the no-spam message in their inbox.

I tryed the cmd_learn driver in markasjunk2 but it doesn't work for me :
When I put just a little comman like :
$rcmail_config['markasjunk2_spam_cmd'] = sa-learn --spam %f;
I have an error : server error : Internal server Error
Title: markasjunk2
Post by: JohnDoh on September 15, 2011, 11:20:36 AM
did you put quotes round it like $rcmail_config['markasjunk2_spam_cmd'] = 'sa-learn --spam %f';?
Title: markasjunk2
Post by: mgdb on September 16, 2011, 02:19:03 AM
Quote from: JohnDoh;36596did you put quotes round it like $rcmail_config['markasjunk2_spam_cmd'] = 'sa-learn --spam %f';?

yes of course !!
Title: markasjunk2
Post by: JohnDoh on September 16, 2011, 02:23:36 AM
is there anything in the error log?
Title: markasjunk2
Post by: mgdb on September 16, 2011, 09:03:33 AM
Quote from: JohnDoh;36614is there anything in the error log?

Sorry, I answered your last to rapidly : I forgot to put the quotes. Now it is working.

BUT : When I clic on the spam icon, the spam-messages made a little long time (about 6 o 10 seconds) to move to the Junk box.

In my roundcube errors logs there are these lines :PHP Error: Deprecated hook name. user_preferences -> preferences_list in MYPATH/roundcubemail-0.5.1/program/include/rcube_plugin_api.php on line 207 (POST /?_task=mail&_action=plugin.markasjunk2.junk?_task=&_action=)

I saw it is not only for markasjunk2 but for the all roundcube parametes.

My errors logs grows cause by the same errors messages

(hope you understand my english :) )

Thanks for your patient and your help
Title: markasjunk2
Post by: JohnDoh on September 17, 2011, 03:13:11 AM
QuoteBUT : When I clic on the spam icon, the spam-messages made a little long time (about 6 o 10 seconds) to move to the Junk box.

yep, thats coz salearn is busy processing the message

QuoteIn my roundcube errors logs there are these lines :PHP Error: Deprecated hook name. user_preferences -> preferences_list in MYPATH/roundcubemail-0.5.1/program/include/rcube_plugin_api.php on line 207 (POST /?_task=mail&_action=plugin.markasjunk2.junk?_task= &_action=)

one of the plugins are you running uses an old hook, user_preferences. You need to check which one it is and then get a newer version if one exists or contact the plugin author and see if they can help.
Title: markasjunk2
Post by: mgdb on September 23, 2011, 04:15:22 AM
Hello,
I am return to you because I noticed that my apache logs have these lines when I clic on the spam icon :
config: cannot opendir /etc/mail/spamassassin: Permission denied
readdir() attempted on invalid dirhandle SA_CF_DIR at /opt/csw/share/perl/site_perl/Mail/SpamAssassin.pm line 2054.
closedir() attempted on invalid dirhandle SA_CF_DIR at /opt/csw/share/perl/site_perl/Mail/SpamAssassin.pm line 2056.

I am under solaris 10, spamassassin 3.3.1

Thanks for you help
Title: markasjunk2
Post by: JohnDoh on September 23, 2011, 04:46:09 AM
that error message suggests that the web server user doesnt have permission to run the salearn process.
Title: markasjunk2
Post by: mgdb on September 23, 2011, 05:20:13 AM
Quote from: JohnDoh;36717that error message suggests that the web server user doesnt have permission to run the salearn process.

I solved it : just add my user webserver to the right group.

now I have an SA error. But I will fight it :)

Thanks