nmh-workers
[Top] [All Lists]

Re: information about filtering mail and exmh/nmh

1998-02-22 06:15:23
Robert,

In message <24047(_dot_)888144137(_at_)munnari(_dot_)OZ(_dot_)AU>, Robert Elz 
writes:

  |   When Richard
  |   finishes the nmh file locking though, using rcvstore will be good to
  |   prevent any possible problems due to unlocked maildrops,

Yes - though in practice the main problem with locking with MH folders
is with updates to the shared files (.mh_sequences, etc), rather than
with updates to the directories themselves ("link(2)" generally works OK
to prevent two files getting renamed into the same thing - and procmail
does use link, and retry with a higher number if the link fails).   

Actually, procmail will wait due to the LoCK file and thus rcvstore
can not mess with the sequence:

        :0 :LCK..mh
        * (^TO|^Subject:.*)exmh
        | rcvstore +linux/mh

        :0 :LCK..mh
        * (^TO|^Subject:.*)nmh
        | rcvstore +linux/mh


The one time it might would be if you have multiple (different)
systems attempting to link into the same folder in an NFS mounted
maildrop - as link isn't guaranteed over NFS with competing clients
(though it doesn't often fail even there), in that case a locking
mechanism that works over NFS is going to be needed to solve it
(which really means using lockd, nothing using NFS primitives can
work for certain).

Depends where you put the LCK..* files. If they are on the NFS other
procmails should also wait for them to go away.

el

-- 
Dr. Eberhard W. Lisse\         /              Swakopmund State Hospital
<el(_at_)lisse(_dot_)NA>         *        |               Resident Medical 
Officer
Private Bag 5004       \      / +264 81 124 6733 (cell) 64 461005(h) 461004(f)
Swakopmund, Namibia     ;____/ Domain Coordinator for NA-DOM (el108)
Vice-Chairman, Board of Trustees, Namibian Internet Development Foundation,
an Association not for Gain. NAMIDEF is the Namibian Internet Service Provider.


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