On Tue, 2003-03-04 at 09:45, Reginald Reed wrote:
> What is the easiest way to have spamassassin process a sendmail mbox
> file moving spam to another mbox file?  I know this has to be incredibly
> simple, but I thought I'd check here first before I dove in.
> 
> Thanks in advance!

Well, spamassassin doesn't generally do the moving (I think it can,
but there are much better tools to do that).  Generally, spamassassin
just tags the spam (or not spam) and then procmail is given the
job of saving it to a different folder.  For example, I filter my
mail through spamassassin and then let procmail direct it like this:

# Catch spam :-)
:0:
* ^X-Spam-Status: Yes
caughtspam

:0:
* ^X-Spam-Flag: YES
caughtspam

This takes anything with the header "X-Spam-Status: Yes" or
"X-Spam-Flag: YES" and saves it into the caughtspam folder.

If your site isn't using spamassassin sitewide, you can add
these lines in your ~/.procmailrc *before* the above lines
to filter through spamassassin:

# Tag Spam 
:0fw
| /usr/bin/spamassassin -P

(Make sure, of course, you put the correct path to the spamassassin
binary.)

Cheers,
Tanner
-- 
Tanner Lovelace | lovelace(at)wayfarer.org | http://wtl.wayfarer.org/
--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--
GPG Fingerprint = A66C 8660 924F 5F8C 71DA  BDD0 CE09 4F8E DE76 39D4
GPG Key can be found at http://wtl.wayfarer.org/lovelace.gpg.asc
--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--
 This would be a very good time to hang out with the Open Source 
 people, before they get formally reclassified as a national security 
 threat. -- Bruce Sterling

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to