[EMAIL PROTECTED] wrote: > I would like to use the magic file to detect the filetype, if this is > possible. I have the attachement stored and (generally) decoded in a > variable.
There is a Python binding to the libmagic library, see http://mx.gw.com/pipermail/file/2003/000055.html Meanwhile, this binding is part of the standard file(1) distribution. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list