vi /var/lib/roundcube/plugins/markasjunk2/config.inc.php
$config['markasjunk2_learning_driver'] = 'cmd_learn';
$config['markasjunk2_spam_cmd'] = 'sa-learn --spam --no-sync --username=%u %f';
$config['markasjunk2_ham_cmd'] = 'sa-learn --ham --no-sync --username=%u %f';
Tried it
$config['markasjunk2_learning_driver'] = 'cmd_learn';
$config['markasjunk_spam_cmd'] = '/usr/bin/sa-learn --spam --prefs-file=/var/lib/spamassassin/.spamassassin/user_prefs %f';
$config['markasjunk_ham_cmd'] = '/usr/bin/sa-learn --ham --prefs-file=/var/lib/spamassassin/.spamassassin/user_prefs %f';
The “Spam” button is there and works. When you click the “Spam” button, the letter goes to spam, but when checking the letter still goes through the spam filter. spamassassin lets the letter through.
What error could there be?