[Tutor] hints on uuencoding?

Kent Johnson kent37 at tds.net
Wed Mar 28 13:36:52 CEST 2007


James Rocks wrote:
> OK ... so I got my mail receipt working (thanks Rikard) but one thing
> I will be downloading is attached TRN files.
> 
> I can download a mail and subsequently put it in a text file but then
> I want as easy a way as possible (which may or may not involve
> uudecoding, there may well be a way to simply pull the attached file
> off for all I know) to get that file from either trhe text file or
> the mail object:

It sounds like you need to use the email package to pull apart a 
multi-part mime message. The last example here may help:
http://docs.python.org/lib/node162.html

Kent


More information about the Tutor mailing list