List-
I need to alter the subject in all messages sent to a specific address
hosted on my toaster then forward to another address owned by us a
different system.
Let's say my toaster is authoritative for example.com. For every
message sent to [email protected], I want to alter the subject, adding
something like '[ticket#]' then forward to [email protected].
To recipients of the forwarded message, it will appear that the message
was sent by the original sender.
So far I've tried to handle this with a script and entries in
/home/vpopmail/domains/example.com/foo/.qmail. Here's the contents of
the .qmail file:
|/home/vpopmail/scripts/munge.pl
&[email protected]
This works somewhat. The script looks at each line on input from stdin
and spits it back out on stdout unless it starts with 'Subject:' in
which case it alters the lines as desired before outputting. I can see
in debug output that the script executes and alters the subject as
desired. Unexpectedly, I also see the output of the script in
/var/log/qmail/send/current. The message is then forwarded as desired
but the message received by [email protected] does not include the
changes to the subject.
I suspect that I misunderstand the capabilities of piping to a script.
Am I close?
Is there some other tool I can use?
Regards,
Brent Gardner
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]