==================================================================
  Please DO NOT REPLY to this mail or send email to the developers
  about this bug. Please follow-up to Bugzilla using this link:
    https://bugs.contribs.org/show_bug.cgi?id=1701

  Have you checked the Frequently Asked Questions (FAQ)?
    http://wiki.contribs.org/SME_Server:Documentation:FAQ

  Please also take the time to read the following useful guide:
    http://www.chiark.greenend.org.uk/~sgtatham/bugs.html
==================================================================

Unnilennium <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CONFIRMED                   |IN_PROGRESS

--- Comment #38 from Unnilennium <[email protected]> ---
first thank you for the idea  to train against the folder instead of each
files.

from reading the proposed suggestion there is something that seems wrong to me
:

$MailDir = "/home/e-smith/files/users/" . $key . "/Maildir";
[...]
my $SpamDir = $MailDir . "/" . $logdir . "/cur/";

opendir(SPAMDIR, $SpamDir);
my @spamfiles = sort grep { /$hostname/ } readdir(SPAMDIR);

my $filetolearn = $Maildir . $SpamDir ;
my $result = `su - root -c "/usr/bin/sa-learn --spam --showdots $filetolearn"`;

I do not see the purpose of $Maildir, which was not declared before. It could
be a typo ( and I guess it is and this is a lucky one) of $MailDir ( capital D)
. However, if it is, then $filetolearn would be
/home/e-smith/files/users/$key/Maildir/home/e-smith/files/users/USERNAME/Maildir/$logdir/cur/
as $Spamdir already prefix $MailDir ...


working on it to create a new RPM .

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
_______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/

Reply via email to