[Python-Dev] Mail handeling with Python

Apurv Anand apurv_anand@hotmail.com
Fri, 18 Jul 2003 15:14:11 +0530


This is a multi-part message in MIME format.

------=_NextPart_000_0005_01C34D3F.3DF76E10
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,

I am very new to Python.

Need to know if I can achieve this with Python:
~ Read a mail from Outlook 2000 Clinet (or may be from Exchange server =
directly; but from the Client machine)
~ The mail will be filtered for certain words in subject / body (I want =
to read only one perticular mail I will recieve every week)
~ Find (make code guess) a string within the mail. (Basically its a UNC =
path that keeps changing according to the subfolders. The name of the =
machine is same so i have to write something which can guess (find) the =
UNC path within the mail (Its something like \\fileserver\foo\abc which =
can change to \\fileserver\foo\xyx)
~ Open this UNC path and copy the contents to a local folder.

Thanks for the help.
- apurv
------=_NextPart_000_0005_01C34D3F.3DF76E10
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=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I am very new to Python.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Need to know if I can achieve this with =

Python:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>~ Read a mail from Outlook 2000 Clinet =
(or may be=20
from Exchange server directly; but from the Client machine)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>~ The mail will be filtered for certain =
words in=20
subject / body (I want to read only one perticular mail&nbsp;I will =
recieve=20
every week)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>~ Find (make code guess) a string =
within the mail.=20
(Basically its a UNC path that keeps changing according to the =
subfolders. The=20
name of the machine is same so i have to write something which can guess =
(find)=20
the UNC path within the mail (Its something like <A=20
href=3D"file://\\fileserver\foo\abc">\\fileserver\foo\abc</A> which can =
change to=20
<A =
href=3D"file://\\fileserver\foo\xyx">\\fileserver\foo\xyx</A>)</FONT></DI=
V>
<DIV><FONT face=3DArial size=3D2>~ Open this UNC path and copy the =
contents to a=20
local folder.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks for the help.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>- apurv</FONT></DIV></BODY></HTML>

------=_NextPart_000_0005_01C34D3F.3DF76E10--