[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: fetchmail: does it lock ? I don't think so.
Hi,
qpopper is locking the mailbox you are fetching from. I don't know about
the mailbox fetchmail is writing to.
Shachar.
On Sat, 6 Feb 1999, Peter L. Peres wrote:
>
> Hello,
>
> It's me again (g). I am trying to set up fetchmail in a way that
> prevents it from losing mail. Question: does fetchmail lock itself/its
> session so another fetchmail won't run concurrently with it (assuming
> retrieval from multiple hosts) or does the POP/other daemon have the
> responsability to maintain atomicity ? The fetchmail runs as some user but
> a root crontab script can fight with it. The docs say that there is a
> per-user lock when running.
>
> What happens when more than one client tries to access the same mailbox
> on a POP3 etc server ? Is this documented somewhere ? In the protocol RFCs
> ?
>
> What is the most popular locking method excepting lock files for a
> non-file resource such as a database or table ? A registry + a set of
> methods ? (flameproof suit on). If I remember well, in Linux syscalls are
> interruptible so simple lock files are a bad idea anyway, no ?
>
> tia,
>
> Peter
>
> PS: This question is directly related to Linux of course.
>
>
Shachar Tal
-------------
finger shachar@vipe.technion.ac.il for contact info or PGP key.