That's what procmail's "lockfile" utility is for. Have cron call a shell
script that does this:
#!/bin/sh
LISTFOLDER=whatever INBOX=whatever
/path/to/lockfile $LISTFOLDER.lock $INBOX.lock && \
cat $LISTFOLDER >> $INBOX && \
rm -f $LISTFOLDER.lock $INBOX.lock
It's probably a safe assumption that the directories where cat
and rm reside
are in $PATH for a shell invoked by cron, but lockfile might not be.
Thanks, that should do it!
Best regards,
Reiner.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail