in reply to Need help with Mail::Box module please

By default Mail::Box tries to create a /var/mail/username.lock file and you don't have the permissions required to do that. You can set lock_file to something else, but you need to know what locking your MTA is using or you might loose mail.

One thing you can do is Move the mail file to your home directory. Make sure the move is atomic. That will also solve your delete problem, as the MTA will recreate the mailbox nextime you get mail.

-- gam3
A picture is worth a thousand words, but takes 200K.
  • Comment on Re: Need help with Mail::Box module please