On Tue, 18 Jan 2005 16:36:53 -0800, Gary Funck <gary(_at_)intrepid(_dot_)com>
* $ B ?? $FIND
:0c # Write the email, fork a copy
:0a # process the copy of the mail
Not bad, but how do we make sure that the file named by $MYDATE
isn't overwritten by another process executing this script within
the same second in time?
We don't. But then again, that wasn't part of the spec. :)
That said, it is trivial to do this. simplest way would be to lock
the $MYDATE file and have the script be able to deal intelligently
with multiple mails in the same mbox file, or add a random tag to the
end of the file name.
procmail mailing list Procmail homepage: http://www.procmail.org/