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.
I was thinking something more like the following:
* $ B ?? $FIND
# serialize the file create
# the owner of the lock waits a second,
# the next one through the gate will wait a second also.
# this quarantees a unique file name as long as the
# system admin. doesn't move the clock backwads.
MYDATE=`sleep 1; date '+%d%m%Y%H%M%S`
:0a # process the copy of the mail
procmail mailing list Procmail homepage: http://www.procmail.org/