Michael Sperber [Mr. Preprocessor] writes:
- The locking policy is not an OS issue, but rather a site issue.
The OS issue is what policies *work*, not which ones are in use.
The locking stuff in a s/*.h file reflects the locking policy
in use by the default delivery agent on that operating system.
Example: Under BSD/OS, mail.local is the default delivery agent
and it locks mailboxes with flock() during delivery. Dot-locking
is possible under BSD/OS, but if you make movemail use it, you
will be sorry, because you will lose a lot of mail. Since the
prevalent mailbox locking policy isn't testable under autoconf, we
need to preserve this information.
The locking policies can be controlled through three mechanisms (by
descending precedence):
- Specification on the movemail command line.
- Specification of an environment variable EMACSLOCKMETHOD with the
same possible values as the --mail-locking argument to configure.
- Configuration via autoconf and src/config.h.
OK with me, so long as it is heavily stressed that the OS-based
locking default should not be changed unless you know what you
are doing, it voids your warranty, cows will bark, etc.