Mail::Box::Locker::Multi
lock a folder in all ways which work
- Provided by: libmail-box-perl (Version: 4.01-1)
- Report a bug
lock a folder in all ways which work
Mail::Box::Locker::Multi is a Mail::Box::Locker is a Mail::Reporter
See Mail::Box::Locker
The "::Multi" locker locks a folder in each way it can. This way, the chance is highest that any other program will leave the folder alone during our access to it.
NFS-lock and Flock are tried. More may be added when the ways to lock are extended. DotLock overlaps with NFS-lock, but NFS-lock is safer, so that version is preferred.
Extends "DESCRIPTION" in Mail::Box::Locker.
Extends "METHODS" in Mail::Box::Locker.
Extends "Constructors" in Mail::Box::Locker.
-Option --Defined in --Default
expires Mail::Box::Locker 1 hour
file Mail::Box::Locker undef
folder Mail::Box::Locker <C<undef>>
method Mail::Box::Locker 'MULTI'
timeout Mail::Box::Locker 10
use <all possible>
Some locking types are not available on some platforms, so they will not be excluded from the default list (NFS POSIX Flock).
» example: using a subset of multi-lockers
my $locker = Mail::Box::Locker::Multi->new(use => ['DOTLOCK','FLOCK']);
Extends "Attributes" in Mail::Box::Locker.
Extends "Locking" in Mail::Box::Locker.
Extends "Error handling" in Mail::Box::Locker.
Extends "Cleanup" in Mail::Box::Locker.
This module is part of Mail-Box version 4.01, built on December 13, 2025. Website: http://perl.overmeer.net/CPAN/
For contributors see file ChangeLog.
This software is copyright (c) 2001-2025 by Mark Overmeer.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.