Filetypes in email attachments.
"Martin v. Löwis"
martin at v.loewis.de
Thu Aug 25 17:02:06 EDT 2005
justin.vanwinkle at gmail.com 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
More information about the Python-list
mailing list