At 22:00 2010-07-07 +0200, proc1(_at_)fuckaround(_dot_)org wrote:
:0c
!user2(_at_)fuckaround(_dot_)org
Charles has already addressed issues with the extra 'c' flag on the braced
set, but let me point out that you have _no_ provisions for loop detection
on the forwarded message here.
Commonly, before forwarding, one checks to see if there's an "X-Loop"
header with a reasonably unique string in it (usually the account through
which the forward took place), and if so, don't forward. Mailer-Daemon
messages are also not forwarded, though your condition on the braced set
_might_ suffice (unless the fenix is found in the host or domain
portion). You must add the X-Loop header on the messages you forward,
thereby "stamping" the messages with your identifier.
Look for 'loop' in 'man procmailex' (procmail examples).
---
Sean B. Straw / Professional Software Engineering
Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
Please DO NOT carbon me on list replies. I'll get my copy from the list.
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail