In article <[EMAIL PROTECTED]>, Jason R. Mastaler wrote:
> David Collantes <[EMAIL PROTECTED]> writes:
>> DELIVERY = "|/usr/bin/procmail ~/.procmailrc"
>
> You can't deliver to the same .procmailrc that invoked tmda-filter in
> the first place. Deliver to another rcfile such as
> ~/.procmailrc-tmda, or don't deliver to procmail at all if you don't
> need to.
Actually, you can, you just have to take care to avoid loops.
>From ~/.procmailrc:
# Then pipe it to TMDA, unless it's TMDA that's calling us
:0
* !TMDA ?? called-from-tmda
| ${TMDAFILTER}
>From ~/.tmdarc:
DELIVERY = "|/usr/bin/procmail TMDA=called-from-tmda"
Procmail hands messages to TMDA, unless the environment variable TMDA
is set to 'called-from-tmda'.
When the mail comes in from the MTA, that variable isn't set, so it
gets handed to TMDA. When TMDA delivers to procmail, it sets that
variable, so procmail doesn't send it back to TMDA again.
Ed
_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users