Roundcube Community Forum

 

markasjunk2

Started by mgdb, September 14, 2011, 05:16:44 AM

Previous topic - Next topic

mgdb

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

JohnDoh

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?
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

mgdb

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

JohnDoh

did you put quotes round it like $rcmail_config['markasjunk2_spam_cmd'] = 'sa-learn --spam %f';?
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

mgdb

Quote from: JohnDoh;36596did you put quotes round it like $rcmail_config['markasjunk2_spam_cmd'] = 'sa-learn --spam %f';?

yes of course !!

JohnDoh

is there anything in the error log?
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

mgdb

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

JohnDoh

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.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

mgdb

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

JohnDoh

that error message suggests that the web server user doesnt have permission to run the salearn process.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

mgdb

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