On Mon, Nov 15, 1999 at 02:00:29AM +1100, Geoff Roberts wrote:
>
> To test this I wrote a little sed line that searches for the first from
> field and changes it to the from address I want. The dot-qmail file looks
> like the one below:
>
> |sed -e 's/^From:.*mailaddress/From: newmailaddress/1'
> ./pppdir/
>
> Files are written to the pppdir OK, but the from field is the same as
> before. If I redirect the output of the sed command to a file, it is
> rewriting the from field properly.
>
> Are the commands in dot-qmail files able to do what I would like?
The "commands" in the dot-qmail are delivery instructions.
qmail-local follows each instruction in turn.
The lines are not chained together in some sort of pipe, so each line gets
THE SAME MESSAGE.
If you want to do piping, then do everything on one single line with pipes.
http://qmail.x42.com/man/man9/dot-qmail.html
/magnus
--
MOST useless 1998 * http://x42.com/