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 SIGNED MESSAGE----- RL> Hash: SHA1 RL> RL> I've got a spamtrap address setup. I've gotten a good routine RL> down: RL> 1. Pipe the message through "spamassassin -L -P' RL> 2. If spam, file in folder "SPAM1" RL> 3. Pipe the message through "spamassassin -P" RL> 4. If spam, file in folder "SPAM2" RL> 5. If left, pipe the message through "spamassassin -r" and RL> file in folder "SPAM3" RL> RL> I'm currently doing this with Kmail. I'd like to change this RL> to something automated. I need to pull the messages from a RL> POP3 server mailbox and run the above tasks. (In the future, I RL> plan to run a more thorough reporting script: report to razor, RL> spamcop, check for open relays, etc.) RL> RL> Any suggestions on how to do this? RL> RL> Thanks, RL> Richie Laager RL> Wikstrom Telecom Internet RL> -----BEGIN PGP SIGNATURE----- RL> Version: GnuPG v1.0.6 (GNU/Linux) RL> Comment: For info see http://www.gnupg.org RL> RL> iD8DBQE8yfDObfU6uV4fG84RArVeAKDhLQSm6hWKSRGJSnHqE1MBPHAUHQCfXIyt RL> ezNqIZ+90PpElsDT2H4ojlE= RL> =qkWU RL> -----END PGP SIGNATURE----- RL> RL> _______________________________________________ RL> Spamassassin-talk mailing list RL> [EMAIL PROTECTED] RL> https://lists.sourceforge.net/lists/listinfo/spamassassin-talk RL> RL> RL> _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk