I added the following registry keys so I can spam/ham/forget a message from the context menu, i.e. by right clicking on a saved .eml file.
[HKEY_CLASSES_ROOT\Microsoft Internet Mail Message\shell\Forget]
[HKEY_CLASSES_ROOT\Microsoft Internet Mail Message\shell\Forget\command]
@="cmd.exe /c \"type \"\"%1\"\" | \"\"C:\\Perl\\bin\\sa-learn.bat\"\" --forget -L --single\""
[HKEY_CLASSES_ROOT\Microsoft Internet Mail Message\shell\Learn as ham]
[HKEY_CLASSES_ROOT\Microsoft Internet Mail Message\shell\Learn as ham\command]
@="cmd.exe /c \"type \"\"%1\"\" | \"\"C:\\Perl\\bin\\sa-learn.bat\"\" --ham -L --single\""
[HKEY_CLASSES_ROOT\Microsoft Internet Mail Message\shell\Learn as spam]
[HKEY_CLASSES_ROOT\Microsoft Internet Mail Message\shell\Learn as spam\command]
@="cmd.exe /c \"type \"\"%1\"\" | \"\"C:\\Perl\\bin\\sa-learn.bat\"\" --spam -L --single\""
This should be fairly portable, but in case it's not I'm on Win2K SP3/IE6/OE6 and use Mulberry 3.0 as my primary mail client.
Note that I had to resort to this ugly hack since I was unable to just do a "sa-learn --spam -L --file "%1"" due to sa-learn eating up the backslashes windows was passing it in the full pathname.
So far no false positives, but I've had a fair number of false negatives/near misses I hope Bayes will learn to take care of.
Balam
------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk