NAME

Mail::Box::Locker::Multi - lock a folder in all ways which work

CLASS HIERARCHY

Mail::Box::Locker::Multi
is a Mail::Box::Locker
is a Mail::Reporter

SYNOPSIS

See Mail::Box::Locker

DESCRIPTION

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 prefered.

METHOD INDEX

The general methods for Mail::Box::Locker::Multi objects:

MBL DESTROY                          MBL name
 MR errors                               new OPTIONS
MBL filename                          MR report [LEVEL]
MBL hasLock                           MR reportAll [LEVEL]
MBL isLocked                          MR trace [LEVEL]
MBL lock FOLDER                      MBL unlock
 MR log [LEVEL [,STRINGS]]            MR warnings

The extra methods for extension writers:

MR AUTOLOAD                          MR logPriority LEVEL
MR DESTROY                           MR logSettings
MR inGlobalDestruction               MR notImplemented

Methods prefixed with an abbreviation are described in the following manual-pages:

 MR = L<Mail::Reporter>
MBL = L<Mail::Box::Locker>

METHODS

new OPTIONS
OPTIONS        DESCRIBED IN               DEFAULT
file           Mail::Box::Locker          undef
log            Mail::Reporter             'WARNINGS'
method         Mail::Box::Locker          <not used>
timeout        Mail::Box::Locker          1 hour
trace          Mail::Reporter             'WARNINGS'
wait           Mail::Box::Locker          10 seconds
use            Mail::Box::Locker::Multi   [ 'NFS', 'POSIX', 'Flock' ]
  • use => ARRAY

    Array of locker types and locker objects to be used. All types are converted into objects.

    lockers

    Returns a list with all locker objects used by this object.

SEE ALSO

Mail::Box-Overview

AUTHOR

Mark Overmeer (mailbox@overmeer.net). All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

VERSION

This code is beta, version 2.00_20.

Copyright (c) 2001 Mark Overmeer. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 188:

You forgot a '=back' before '=head1'

You forgot a '=back' before '=head1'