Determining Content-Type

Andreas Pauley andreasp at qbcon.com
Tue Jan 23 08:19:05 EST 2001


Oleg Broytmann wrote:
 
>    You cannot determine - you can only guess. For good guess, use
> mimetypes.py from standard library.

Thanks, this is exactly what I needed. I guess I should have looked just
a little further than mimetools and I would have found it myself.

Just for interest sake, I'm using your extract_mime module to rip
attachments from email before inserting it into the database. Very
useful piece of software.

Andreas.
-- 
... Any resemblance between the above views and those of my employer,
my terminal, or the view out my window are purely coincidental.  Any
resemblance between the above and my own views is non-deterministic. 
The
question of the existence of views in the absence of anyone to hold them
is left as an exercise for the reader.  The question of the existence of
the reader is left as an exercise for the second god coefficient.  (A
discussion of non-orthogonal, non-integral polytheism is beyond the
scope
of this article.)



More information about the Python-list mailing list