[Tutor] smptlib question

Tino Dai oberoc at gmail.com
Tue Jun 9 02:19:58 CEST 2009


On Mon, Jun 8, 2009 at 5:15 PM, Albert-jan Roskam <fomcl at yahoo.com> wrote:

>
> (sorry for posting this again, but something might have gone wrong)
>
> Hi,
>
> I made a very simple program to send everybody I know a change of address I
> am parsing the .msg files with another function, which returns a set called
> 'recipients'.
>
> The code below works, but it displays all recipients in the 'to' field.
> That is, in the Nth iteration, N recipients are shown. So the first mail has
> one recipient in the 'to' field, the second mail has the first and the
> second recipient, and so forth. I only want one recipient to be shown in the
> 'to' field. It's ugly and since I have a lot of email addresses to parse (4
> years worth of emails!), it would become a very long list.
>
> Pointers, anyone?
>


Are you familiar with the python debugger? Look up pdb in google. It's such
a hndy tool -HTH, Tino
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090608/8400f8f6/attachment-0001.htm>


More information about the Tutor mailing list