Reiner followed up,
| All my mail comes to my Unix workstation (I have shell access, root and
| normal user).
OK, you've answered my question ...
| I thought about saving all list mail into a seperate folder on the Unix
| side and then calling procmail/formail once every day via cron to move the
| mails back into the INBOX that gets check by the Windows client.
... and your own!
| However I
| was not shure how to handle file locking correct when doing this. I think
| mail could get lost if I just use "cat $LISTFOLDER >> $INBOX" from cron...
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.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail