Locking and Mail::Box::Manager
"James Oliver" <[email protected]> Wed, 26 Apr 2006 14:39:01 +0200
| Newsgroups | gmane.comp.lang.perl.modules.mail-box |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I've read about Mail::Box::Locker[0] and on this page the synopsis is:
use Mail::Box;
my $folder =3D Mail::Box->new(lock_method =3D> 'DOTLOCK');
print $folder->locker->type;
On [1] it is written that the Mail::Box::Manager creates Mail::Box
objects. How can I specify the locking method when I use
Mail::Box::Manager? Locking is not mentioned on [1].
example:
my $manager =3D Mail::Box::Manager->new;
my $mailbox =3D $manager->open("$mailboxname", access =3D> 'rw', type
=3D> 'mbox', create =3D> 1);
Is it sufficient to write
my $mailbox =3D $manager->open("$mailboxname", access =3D> 'rw', type
=3D> 'mbox', create =3D> 1, lock_method =3D> 'DOTLOCK');
Thanks for your help,
James
[0] http://search.cpan.org/~markov/Mail-Box-2.065/lib/Mail/Box/Locker.pod
[1] http://search.cpan.org/~markov/Mail-Box-2.065/lib/Mail/Box.pod