SYNOPSIS

 use Mail::Box::Locker;
 my $locker = new Mail::Box::Locker(folder => $folder);

 $locker->lock;
 $locker->isLocked;
 $locker->hasLock;
 $locker->unlock;

 use Mail::Box;
 my $folder = Mail::Box->new(lock_method => 'DOTLOCK');
 print $folder->locker->type;

See SYNOPSIS in Mail::Reporter

DESCRIPTION

Each Mail::Box will create its own Mail::Box::Locker object which will handle the locking for it. You can access of the object directly from the folder, as shown in the examples below.

See DESCRIPTION in Mail::Reporter