Re: Bug#65256: devscripts: master.procmail example has no loop checking
Thanks Josip and Santiago for your replies!
> You may take the following recipe from procmailex(5) as an example:
>
> :0 h c
> * !^FROM_DAEMON
> * !^X-Loop: your@own.mail.address
> | (formail -r -I"Precedence: junk" \
> -A"X-Loop: your@own.mail.address" ; \
> echo "Mail received.") | $SENDMAIL -t
>
> This avoids messages matching ^FROM_DAEMON but also messages
> containing a special X-Loop: header: which is added to every
> mail just before being forwarded.
That's nicer, I guess. So would the following work, in place of the
existing two lines (which are:
:0
! $FORWARD
), and have the same effect, minus the looping?
:0
* !^FROM_DAEMON
* !^X-Loop: $FORWARD
| formail -A"X-Loop: $FORWARD" | $SENDMAIL $FORWARD
Thanks!
Julian
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Julian Gilbey, Dept of Maths, QMW, Univ. of London. J.D.Gilbey@qmw.ac.uk
Debian GNU/Linux Developer, see http://www.debian.org/~jdg
Donate free food to the world's hungry: see http://www.thehungersite.com/
Reply to: