forward after procmail filtering.

2004-03-06 Thread Eduardo Viruena Silva

Hello FreeBSD Gurus!

I would like to send a copy of my mail to another
account I have in another system, but I want to do it after
spamassassin and clamav filter my mail.

How do I do that?

Thanks in advance.

--
Eduardo.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: forward after procmail filtering.

2004-03-06 Thread Matthew Seaman
On Sat, Mar 06, 2004 at 11:05:35AM -0600, Eduardo Viruena Silva wrote:

 I would like to send a copy of my mail to another
 account I have in another system, but I want to do it after
 spamassassin and clamav filter my mail.
 
 How do I do that?

See procmailex(5), particularly the section that talks about Suppose
you have two accounts -- but essentially you need to put a rule like
this towards the end of your ~/.procmailrc:

:0 c
* !^X-Loop: [EMAIL PROTECTED]
| formail -A X-Loop: [EMAIL PROTECTED] | \
   $SENDMAIL -oi [EMAIL PROTECTED]

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgp0.pgp
Description: PGP signature