Author Topic: Markasjunk2 sa-learn Problem  (Read 5051 times)

Offline crusher

  • Jr. Member
  • **
  • Posts: 24
    • http://crusher.untergrund.net
Markasjunk2 sa-learn Problem
« on: December 09, 2009, 08:21:55 AM »
Hallo Forum!

Hab da mal ein Problem und hoffe, ihr könnt mir helfen.
Hab mir Markasjunk2 eingebunden und für meine Bedürfnisse konfiguriert. Das markieren als Spam/Ham klappt wunderbar. Auch verschiebt er es brav nach Spam/Posteingang.
Nur irgendwie will das lernen mit sa-learn nicht so Recht klappen.

Hier mal meine config.inc.php:

$rcmail_config['markasjunk2_learning_driver'] = 'cmd_learn';

// Mark messages as read when reporting them as spam
$rcmail_config['markasjunk2_read_spam'] = true;

// Mark messages as unread when reporting them as ham
$rcmail_config['markasjunk2_unread_ham'] = false;

// When reporting a message as ham, if the orginial message is attached (like with SpamAssassin reports),
// detach the orginial message and move that to the INBOX, deleteing the spam report
$rcmail_config['markasjunk2_detach_ham'] = true;

// Add flag to messages marked as spam (flag will be removed when marking as ham)
// If you do not want to use message flags set this to null
$rcmail_config['markasjunk2_spam_flag'] = 'Junk';

// Add flag to messages marked as ham (flag will be removed when marking as spam)
// If you do not want to use message flags set this to null
$rcmail_config['markasjunk2_ham_flag'] = null;

// Write output from spam/ham commands to the log for debug
$rcmail_config['markasjunk2_debug'] = false;

// cmd_learn Driver options
// ------------------------
// The command used to learn that a message is spam
// The command can contain the following macros that will be expanded as follows:
//      %u is replaced with the username (from the session info)
//      %l is replaced with the local part (before the @) of the username (from the session info)
//      %d is replaced with the domain part (after the @) of the username (from the session info)
//      %f is replaced with the path to the message file (THIS SHOULD ALWAYS BE PRESENT)
// If you do not want run the command set this to null
$rcmail_config['markasjunk2_spam_cmd'] = '/usr/bin/sa-learn --spam --prefs-file=/var/qmail/mailnames/%d/%l/.spamassassin/user_prefs %f';

// The command used to learn that a message is ham
// The command can contain the following macros that will be expanded as follows:
//      %u is replaced with the username (from the session info)
//      %l is replaced with the local part (before the @) of the username (from the session info)
//      %d is replaced with the domain part (after the @) of the username (from the session info)
//      %f is replaced with the path to the message file (THIS SHOULD ALWAYS BE PRESENT)
// If you do not want run the command set this to null
$rcmail_config['markasjunk2_ham_cmd'] = '/usr/bin/sa-learn --ham --prefs-file=/var/qmail/mailnames/%d/%l/.spamassassin/user_prefs %f';


Ein manuelles anlernen über die Shell mit den gleichen Befehlen klappt.
Hab es mit sa-learn --dump magic überprüft. Er addiert genau die exakte Anzahl an gelernten nspams bzw. nhams dazu.
Nur halt Markasjunk2 reicht den Befehl scheinbar nicht exakt weiter bzw. es fehlen irgendwo die entsprechenden Rechte.
Weiß leider nicht, wo ich genau nachschauen soll.

Hat jmd. nen Tip?