Hi,
I am writing a Perl script that will remove the Disposition-Notification-To
header from incoming email messages so the annoying return receipt alerts
will be removed from email clients here.
I have a ~alias/.qmail-default set up like this:
|/var/qmail/bin/strip_return_receipt
|/var/qmail/bin/fastforward -d /etc/aliases.cdb
I would like the strip_return_receipt script to remove the one header and
then pass the modified message on to the second command in the chain to
perform virtual host forwarding.
However, I can't figure out how to do this. It looks like I have to remove
the header from the STDIN stream to the first script, then call the second
script directly from the first script. Is there any way to make the first
script modify the STDIN stream that the second script receives? I think
that would be cleaner and would eliminate the need for one script to know
about the next.
Thanks for any hints,
Greg Larkin