Hi,
I am not too sure what is supposed to happen when I run a program in a
dot-qmail file using |program_name.
I am writing mail to a maildir so that I can send them via PPP when I
connect to the network. To do this I have just followed D. L. Vander
Woude's "Mail Queue with qmail" how to.
When the mail is written to the pppdir maildir I would like to be able
to use a program like ofmipd that could take a database of names and change
the from address of emails being written to pppdir - perhaps maildrop?
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?
Thanks
Geoff