Roundcube Community Forum

 

markasjunk2 does not add to the black list of e-mail by clicking on the "Spam"

Started by toxi, July 24, 2013, 08:40:14 AM

Previous topic - Next topic

toxi

markasjunk2 does not add to the black list of e-mail by clicking on the "Spam".
How to make markasjunk2 added to the database SQL e-mail address by clicking on the "Spam"?

JohnDoh

the markasjunk2 plugin comes with a driver called sa_blacklist (also needs the sauserprefs plugin) which adds the sender address to he spamassassin address blacklist
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

toxi

plugins/markasjunk2/config.inc.php

$rcmail_config['markasjunk2_learning_driver'] = 'cmd_learn';
$rcmail_config['markasjunk2_ham_mbox'] = null;
$rcmail_config['markasjunk2_spam_mbox'] = null;
$rcmail_config['markasjunk2_read_spam'] = false;
$rcmail_config['markasjunk2_unread_ham'] = false;
$rcmail_config['markasjunk2_spam_flag'] = 'Junk';
$rcmail_config['markasjunk2_ham_flag'] = null;
$rcmail_config['markasjunk2_debug'] = true;
$rcmail_config['markasjunk2_mb_toolbar'] = true;
$rcmail_config['markasjunk2_cp_toolbar'] = true;
$rcmail_config['markasjunk2_move_spam'] = false;
$rcmail_config['markasjunk2_move_ham'] = false;

// cmd_learn Driver options
$rcmail_config['markasjunk2_spam_cmd'] = 'sa-learn --spam --no-sync --username=%u %f';
$rcmail_config['markasjunk2_ham_cmd'] = 'sa-learn --ham --no-sync --username=%u %f';

// sa_blacklist Driver options
$rcmail_config['markasjunk2_sauserprefs_config'] = '../sauserprefs/config.inc.php';


plugins/sauserprefs/config.inc.php

$rcmail_config['sauserprefs_db_dsnw'] = 'mysql://user:pass@localhost/roundcubemail';
$rcmail_config['sauserprefs_db_dsnr'] = '';
$rcmail_config['sauserprefs_db_persistent'] = FALSE;
$rcmail_config['sauserprefs_sql_table_name'] = "userpref";
$rcmail_config['sauserprefs_sql_username_field'] = "username";
$rcmail_config['sauserprefs_sql_preference_field'] = "preference";
$rcmail_config['sauserprefs_sql_value_field'] = "value";
$rcmail_config['sauserprefs_global_userid'] = "\$GLOBAL";
$rcmail_config['sauserprefs_whitelist_sync'] = FALSE;
$rcmail_config['sauserprefs_whitelist_abook_id'] = null;


No error?

Max Barr

I've made a client-side driver for markasjunk2 plugin.
It makes new filters each time you use the "mark as junk" button !
You don't need to set the configuration of you server. It learns by it self and it is totaly client-side.

https://github.com/MaximeBarrast/filter_learn

I think it could be usefull for people who has trouble with server side blacklist like you.