On Thu, 21 Sep 2000, Eric Cox wrote:
> > > |script that writes a username into ~alias/.qmail-user2
> > > &user2
Peter Samuel wrote:
> > | forward `some_script_that_generates_new_addess(es)`
> > See the man page.
On Sat, Sep 23, 2000 at 06:44:37PM -0700, Eric Cox wrote:
> The man page says that forward is a wrapper around qmail-queue.
> Doesn't that mean the message makes two complete trips into and out of
> the queue, while the method I described is handled completely within
> qmail-local?
Your script has a race condition -- if two messages are being handled
simultaneously, and going to different users, what happens?
Also, the cost of putting a message in the queue is small compared to
the cost of running a shell script. By the time you deal with your race
condition, you've probably lost any "efficiency" gains.
Finally, your script should have read &myusername-user2, for the second
line.
--
Raul