Author Topic: markasjunk2 does not add to the black list of e-mail by clicking on the "Spam"  (Read 4668 times)

Offline toxi

  • Newbie
  • *
  • Posts: 7
    • Information and computer portal Service Plus (Ru)
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"?
Jabber: toxi_roman@jabber.ru

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,855
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ā€¦

Offline toxi

  • Newbie
  • *
  • Posts: 7
    • Information and computer portal Service Plus (Ru)
plugins/markasjunk2/config.inc.php

Code: [Select]
$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

Code: [Select]
$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?
Jabber: toxi_roman@jabber.ru

Offline Max Barr

  • Newbie
  • *
  • Posts: 3
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.
« Last Edit: June 08, 2015, 02:28:19 PM by Max Barr »