[Tutor] Mime content types. Can you access this info from the os

Phil Bertram phil.bertram@clear.net.nz
Tue, 25 Sep 2001 06:46:47 +1200


This is a multi-part message in MIME format.

------=_NextPart_000_0004_01C1458D.D8B04320
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,

I am playing around with MimeWriter.py

Is ther any way to access the content type of a binary file (Windows =
NT4) that is being added to a MIME message as an attachment so the =
header can be created correctly.

e.g. 'application/vnd.ms-word' etc

Regards
Phil Bertram

------=_NextPart_000_0004_01C1458D.D8B04320
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dwindows-1252">
<META content=3D"MSHTML 5.50.4134.600" name=3DGENERATOR></HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>Hi,</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>I am playing around with MimeWriter.py</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>Is ther any way to access the content type of a =
binary file=20
(Windows NT4) that is being added to a MIME message as an attachment so =
the=20
header can be created correctly.</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>e.g. 'application/vnd.ms-word' etc</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>Regards</FONT></DIV>
<DIV><FONT size=3D2>Phil Bertram</FONT></DIV></BODY></HTML>

------=_NextPart_000_0004_01C1458D.D8B04320--