I've decided it's reasonable to expect someone to want to forget a message at the same
time as learning it.


Consider the possibility that you have learnt something as spam and you want to relearn
it as ham and vice-versa. Currently, if I'm not mistaken this requires the following


#forget $mail based on message-id
$m->learn($mail, undef, 0, 1)
#learn $mail as spam
$m->learn($mail, undef, 1)

wouldn't it be easier to simply say

$m->learn($mail, undef, 1, 1)

learn the mail as spam but forget what we already recorded

or

$m->learn($mail, undef, 0, 1)

learn the mail as ham but forget what we already recorded

On Dec 13, 2003, at 6:26 PM, Matt Kettler wrote:

At 06:53 PM 12/13/2003, Robert Nicholson wrote:
$status = $f->learn ($mail, $id, $isspam, $forget)

suggests that both $isspam and $forget are significant however
it will only ever do one or the other not both.

Well, forget inherently means you want to remove an entry instead of learn.. at that point it's irrelevant if it's spam or not. So why would the $isspam parameter matter?


Did you expect a single call would forget, and re-learn the message again? That's silly, because you'd never be able to _just_ forget something.

Admittedly it'd be a easier to understand interface if it had two separate functions, learn and forget, but that's really more of a stylistic thing than anything else.



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk



------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to