Has anyone automated the saving of attachment files so that spamassassin's sa-learn command can be run by a cron job? (I'm thinking it might be nice to have [EMAIL PROTECTED] and [EMAIL PROTECTED] so that users can forward their ham and spam...and that I won't have to worry about keeping things up-to-date myself. (For that matter, [EMAIL PROTECTED] and [EMAIL PROTECTED] would be very handy, as well.)
Why not just procmail them directly on receipt? I would but I'm not sure I know how to do that. At first glance, this might seem like a logical solution: :0 * |sa-learn --[ham|spam] --single While this seems very close to what I want--ie, to run sa-learn on all messages received--it is not quite what I need. The problem is that the message that gets sent to [EMAIL PROTECTED] or [EMAIL PROTECTED] would come from one of my users who is forwarding a message to report it as ham or spam, an so procmail would actually get a message from my user not just the one from a spammer. So, first I would need to save the attachment (if that is what is forwarded), and then run a script which runs sa-learn on the file I just saved. Right? Isn't there a tried-and-true solution already available? ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk