Have fetchmail invoke procmail, and feed procmail the recipe:
:0fw
|spamassassin -L -P
:0:
* ^X-Spam-Status: Yes
/path/to/SPAM1
:0fw
|spamassassin -P
:0:
* ^X-Spam-Status: Yes
/path/to/SPAM2
:0
{
:0w
|spamassassin -r
:0:
/path/to/SPAM3
}
Richie Laager wrote:
RL> -BEGIN PGP SIGN
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I've got a spamtrap address setup. I've gotten a good routine
down:
1. Pipe the message through "spamassassin -L -P'
2. If spam, file in folder "SPAM1"
3. Pipe the message through "spamassassin -P"
4. If spam, file in folder "SPAM2"
5. If left, pipe