procmail
[Top] [All Lists]

Re: MH Mail folders question

2002-06-19 04:40:32
This is very wrong.

You want to use something like

:0 
* (^TO|^Subject:.*)procmail
| rcvstore +procmail

so the rcvstore program from the nmh distribution will do it and also
sort the locking.

Don't forget to make sure that the .procmailrc PATH points to the
directroy where rcvstore is located.

el

In message 
<BD3E77556CCABA4F8BDF174801D41E880102D583(_at_)exchserver(_dot_)FRiskMan(_dot_)com>,
 
Edward Wildgoose writes:
A quick and easy question:  If I have procmail delivering to an MH folder, an
d my mail server might deliver multiple local messages simultaneously, then d
o I need a lock file?

ie is this OK?:

:0
./MH_Folder/.

Second question, from searching around I think that I do need locking, and pr
esumably if I have a reader application which is simultaneously reading the n
ew mail, how do I make sure that I don't get an incomplete read, ie is there 
a standard way of locking MH that reader applications understand as well?  Fo
r reference I have a perl app using the Mail::Box library and I am not sure h
ow to ensure that I don't get to read just part of a new mail because procmai
l hasn't finished delivering it yet?

Alternatively there may be a temp file involved somewhere and hence delivery 
is atomic and all this is moot?  Can anyone clear this up please?

Thanks

Ed W
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>