other versions
- wheezy 4.80-7+deb7u3
- jessie 4.84.2-2+deb8u3
- jessie-backports 4.89-1~bpo8+1
- testing 4.89-2
- unstable 4.89-2
EXIM_LOCK(8) | System Manager's Manual | EXIM_LOCK(8) |
NAME¶
exim_lock - Mailbox maintenanceSYNOPSIS¶
exim_lock [options]mailbox-fileDESCRIPTION¶
The exim_lock utility locks a mailbox file using the same algorithm as Exim. For a discussion of locking issues, see section 25.2. exim_lock can be used to prevent any modification of a mailbox by Exim or a user agent while investigating a problem. The utility requires the name of the file as its first argument. If the locking is successful, the second argument is run as a command (using C's “system()” function); if there is no second argument, the value of the SHELL environment variable is used; if this is unset or empty, /bin/sh is run. When the command finishes, the mailbox is unlocked and the utility ends. The following options are available:- -fcntl
- Use “fcntl()” locking on the open mailbox.
- -interval
- This must be followed by a number, which is a number of seconds; it sets the interval to sleep between retries (default 3).
- -lockfile
- Create a lock file before opening the mailbox.
- -mbx
- Lock the mailbox using MBX rules.
- -q
- Suppress verification output.
- -retries
- This must be followed by a number; it sets the number of times to try to get the lock (default 10).
- -timeout
- This must be followed by a number, which is a number of seconds; it sets a timeout to be used with a blocking “fcntl()” lock. If it is not set (the default), a non-blocking call is used.
- -v
- Generate verbose output.
exim_lock /var/spool/mail/spqr
exim_lock -q /var/spool/mail/spqr <<End
<some commands>
End
exim_lock -q /var/spool/mail/spqr "cp /var/spool/mail/spqr /some/where"
BUGS¶
This manual page needs a major re-work. If somebody knows better groff than us and has more experience in writing manual pages, any patches would be greatly appreciated.SEE ALSO¶
exim(8), /usr/share/doc/exim4-base/AUTHOR¶
This manual page was stitched together from spec.txt by Andreas Metzler <ametzler at downhill.at.eu.org>, for the Debian GNU/Linux system (but may be used by others).March 26, 2003 |