Mail::Box not check expires date for dotlock
"August" <[email protected]> Wed, 2 Jun 2004 22:10:43 +0300
| Newsgroups | gmane.comp.lang.perl.modules.mail-box |
|---|---|
| Message-ID | <004e01c448d5$5019d280$0201a8c0@necromancer> |
Hi All
I found some bug in Mail::Box in init sub
where Locker is created
see original code:
$self->{MB_locker}
= $args->{locker}
|| Mail::Box::Locker->new
( folder => $self
, method => $args->{lock_type}
, timeout => $args->{lock_timeout}
, wait => $args->{lock_wait}
, file => ($args->{lockfile} || $args->{lock_file})
);
but wait not used in locker.
In changelog (version 2.013) I found some description about this:
- Mail::Box::Locker::new "timeout" and "wait" options where too
confusing to be implemented correctly. So they didn't work
as described. Now, they are called "expire" and "timeout".
Thanks to [John B Batzel] for pointing-out the problems.
but in source code this not implementation
maby need change wait to expire
PS: English is bad :)