Re: mbox ownership
Jost Krieger <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.mail-box |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Apr 12, 2004 at 04:51:09PM +0200, Mark Overmeer wrote: > * andre deblire ([email protected]) [040406 13:25]: > > As root, I process several unix mbox files which belong to non-root > > users. > > Isn't it saver to process the mailbox of a user with the permissions of > that user? That way, to also avoid the ownership problem. Safer, sure it is. But in cases like cleaning out spam you sometimes need to override disk limits and such things which are only possible as root. > > I read an answer from Mark stating that a call to chown could restore > > the correct ownership. > That's what I do currently. > There is a good case for restoring the owner and permissions on the > moment that the mailbox replacement is accepted. However: how do we > get this to work for all unix/linux versions AND windows? Hard. > > Yes. But AFAIK, this call is only possible AFTER the $folder->close(), > > which unlocks the box, giving to a waiting sendmail process the > > opportunity to throw away the "BOGUS mbox". Sounds like a case against sendmail ... Jost |8-)) -- | [email protected] Please help stamp out spam! | | Postmaster, JAPH, resident answer machine at RUB Comp. Center | | Sincere words are not sweet, sweet words are not sincere. | | Lao Tse, Tao Te King 81 |