Re: [Evolution] Movemail, why?



Yes but locking isn't the only prob lem, with some systems you
need to do the locking as root, or setuid a particular user.
Mail systems generally use .locks anyway.  Its the setuid/setgid
locking/maildrop access that is the bigger problem, but still,
its not that  big if you just move your mail to another database ...


 I am not an expert at this. The only I worried about
file locking, I discovered under python that there was
a posix way of doing this. Now all unix's and even
windows nt are posix compliant.

 Python always provide a layer to make things
portable. Anyway, as far as I know the module is
called fcntl and is an interface to UNIX fcntl and
ioctl routines.
 The locking is done via FCNTL.F_SETLK/FCNTL.F_SETLKW.

 That is the most I could get. You'd have to look at
code to see how they make this portable. 

--- Giao Nguyen <grail cafebabe org> wrote:
On Wed, Jul 19, 2000 at 03:00:41PM -0700, Hassan
Aurag wrote:

--- Giao Nguyen <grail cafebabe org> wrote:

Because portable file locking is hard to do.


 Ok, so how does python do it in a portable
fashion?

Erm. I didn't say it was impossible. I said it was
"hard to do". Which
file locking mechanism do you suggest we use for
mail? I'm largely
unfamiliar with Python so I have no idea how they do
it in a portable
fashion.

Giao

_______________________________________________
evolution maillist  -  evolution helixcode com

http://lists.helixcode.com/mailman/listinfo/evolution


=====
H. Auraghttp://www.geocities.com/h_auragh_aurag yahoo com

__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail ? Free email you can access from anywhere!
http://mail.yahoo.com/

_______________________________________________
evolution maillist  -  evolution helixcode com
http://lists.helixcode.com/mailman/listinfo/evolution






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]