Re: [OT] Problems with permissions etc

2005-07-27 Thread Michael Josephson
Hi,

On 27 Jul 2005 00:36:37 -0700, "Frank Millman" <[EMAIL PROTECTED]>
wrote:

>Alternatively, there
>may be a better way of getting the mac address or identifying the
>workstation.

As Paul pointed out you should not rely on the MAC address as a secure
identifier. However, if it's suitable for your purposes you might want
to take a look at libdnet (http://libdnet.sourceforge.net/) which is a
library that provides access to low level networking routines.

Hope this helps,

-Michael
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Can I get message filename from a Maildir mailbox stream?

2005-02-19 Thread Michael Josephson
>a way to figure out what filename an email object points to in a 
>qmail style Maildir directory?

Assuming you're using the mailbox module from the standard Python
library, the Message objects you get back provide access to the file
object as an instance variable called fp. So if you have:

maildir = mailbox.Maildir("/home/mike/Maildir")
message = maildir.next()

The filename is message.fp.name

Note that the file object is open when you are in this state so you
may want to close it before you do a move/delete etc.

-Michael
-- 
http://mail.python.org/mailman/listinfo/python-list