Subject: | Mail::Box::Locker::DotLock::lock hangs |
Naively calling
my $mbox = Mail::Box::Mbox->new(folder => $mboxfile);
happens to hang the script. The problem is that I'm calling the script
as a non-privileged user, and Mail::Box::MBox tries to create a lockfile
in the /var/mail directory, but is not allowed to, and tries it again and
again. Maybe Mail::Box::Locker::DotLock::_try_lock should check if trying to create the dotlock file leads to an EACCES error and dies in this case?
Regards,
Slaven