[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
fetchmail: does it lock ? I don't think so.
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.