Re: symlinks are clobbered

Mark Overmeer <[email protected]> Tue, 2 Nov 2004 08:35:30 +0100
Newsgroups gmane.comp.lang.perl.modules.mail-box
Organization MARKOV Solutions
Message-ID <[email protected]>
* Dan Drake ([email protected]) [041102 03:15]:
> I've solved the file locking problem I wrote about by copying
> /var/mail/user somewhere else and then copying it back when I'm done,

I cannot remember reading about it.  Probably you message didn't
pass my manual "spam filter" (I get a few hundred a day).

In the archive, I reread your question.  You cannot use the default
dotlocking on the INBOX, but you can use the flock.  It is never
clear wether your local mail receipient is using that as well...
 my $f = $msg->open(..., lock_type => 'FLOCK');
 my $f = Mail::Box::Mbox->new(..., lock_type => 'FLOCK');

To update the folder, you use
  $folder->write(policy => 'INPLACE');
That will leave the file/permission/link as it is.
-- 
               MarkOv

------------------------------------------------------------------------
drs Mark A.C.J. Overmeer                                MARKOV Solutions
       [email protected]                          [email protected]
http://Mark.Overmeer.net                   http://solutions.overmeer.net