Re: FW: [Python-ideas] Standard library high level support for email messages

Daniel Reis <[email protected]> Thu, 31 Jan 2013 10:09:20 +0000
Newsgroups gmane.comp.python.mime.devel
Message-ID <[email protected]>
--===============0469226869==
Content-Type: multipart/alternative;
	boundary="_12780c25-6bc1-4908-a9ee-1293242a6991_"

--_12780c25-6bc1-4908-a9ee-1293242a6991_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

> PS: what is pyzlib?  It sounds like a wrapper for zlib=2C which is what
> I get when I google for it.

I'm sorry=2C I mispelled it: I ment pyzmail (http://pypi.python.org/pypi/py=
zmail).
I do my best to stick to the standard library=2C so I didn't really use it =
(learned more about MIME instead).
For some reason it came to my attention=2C but I cant't track back why. Top=
 result on PyPi for "email" actually is the email-sig  "alpha" module...

> In 3.2=2C smtplib already has a send_message method that will accept a
> Message object and send it.
> Once attaching things is easy=2C I think that plus send_message will get
> you 90+% of the way to where you would like to be.

`send_message` makes an important step forward: it's able to read the "from=
" and "to" from the msg headers.
Next step could be to assist in assembling the message.
The `message` object 's constructor could accept parameters to accelerate n=
ew message creation in a single call:  From=2C To=2C Cc=2C Bcc=2C Subject=
=2C and Body (HTML=3B  TEXT).
And then=2C as you said=2C make attaching things a little easier.

> I would welcome help working on this.  If you want to assist=2C this list
> is probably the best place to talk about it.

Of course. Feel free to suggest me any directions.
An idea is perhaps to discuss how using `message` objects should look like =
in some typical use cases=2C expanding what I said above in some code examp=
les.

Regards
Daniel
 		 	   		  =

--_12780c25-6bc1-4908-a9ee-1293242a6991_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<style><!--
.hmmessage P
{
margin:0px=3B
padding:0px
}
body.hmmessage
{
font-size: 12pt=3B
font-family:Calibri
}
--></style></head>
<body class=3D'hmmessage'><div dir=3D'ltr'>&gt=3B PS: what is pyzlib?  It s=
ounds like a wrapper for zlib=2C which is what<br>&gt=3B I get when I googl=
e for it.<br><br>I'm sorry=2C I mispelled it: I ment pyzmail (http://pypi.p=
ython.org/pypi/pyzmail).<br>I do my best to stick to the standard library=
=2C so I didn't really use it (learned more about MIME instead).<br>For som=
e reason it came to my attention=2C but I cant't track back why. Top result=
 on PyPi for "email" actually is the email-sig  "alpha" module...<br><br>&g=
t=3B In 3.2=2C smtplib already has a send_message method that will accept a=
<br><div>&gt=3B Message object and send it.<br>&gt=3B Once attaching things=
 is easy=2C I think that plus send_message will get<br>&gt=3B you 90+% of t=
he way to where you would like to be.<br><br>`send_message` makes an import=
ant step forward: it's able to read the "from" and "to" from the msg header=
s.<br>Next step could be to assist in assembling the message.<br>The `messa=
ge` object 's constructor could accept parameters to accelerate new message=
 creation in a single call:&nbsp=3B From=2C To=2C Cc=2C Bcc=2C Subject=2C a=
nd Body (HTML=3B&nbsp=3B TEXT).<br>And then=2C as you said=2C make attachin=
g things a little easier.<br><br>&gt=3B I would welcome help working on thi=
s.  If you want to assist=2C this list<br>&gt=3B is probably the best place=
 to talk about it.<br><br>Of course. Feel free to suggest me any directions=
.<br>An idea is perhaps to discuss how using `message` objects should look =
like in some typical use cases=2C expanding what I said above in some code =
examples.<br><br>Regards<br>Daniel<br></div> 		 	   		  </div></body>
</html>=

--_12780c25-6bc1-4908-a9ee-1293242a6991_--

--===============0469226869==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline