Many email clients encode attachments in base-64. I think there are standard modules in python which should be able to decode this.
> Hi > > I made a small python program at home and tried to send by email > attachments > to my studymates. > The attachment however shows up as a strange text > > the first lines look like this: > > M1F]R<_AG(#(@+2 R(&=E;F5R871O<F5R("[EMAIL PROTECTED]<R#0H@"5!I"[EMAIL > PROTECTED])4"!O > M;&EE<'5M<&4)4"!V86YD<'5M<&4)4"!F<FEK=&EO;@EB97)E9VYE="[EMAIL PROTECTED] > M5&EM92 P( [EMAIL PROTECTED]( DS-C(S-C N," ),3(R,BXR,C(R,C(R > M,B ),30V-"[EMAIL > PROTECTED]<http://groups.google.com/groups/unlock?msg=c42d7058ff6b0c28&hl=en&_done=/group/gruppe-b1/browse_thread/thread/23a5c2bfae647d8b%3Fhl%3Den> > @X.2 ),3$R+C(S,S,S,S,S,R ),S0Y,3,T+C$W,[EMAIL PROTECTED] > M,PT*5&EM92 Q( [EMAIL PROTECTED]( DS-34S-# N," ),3(R,BXR,C(R > > I was thinking that it might be the binary representation of my .py files? > (the files were not compresses, just basic .py-files) > If so is there anyways its possible to convert it back into an ordinary > text > file? through either Python og Windows? > > I ain'tt gonna be back to my own PC for the rest of the weekend so some of > the study work requires me to decode the attachments. > > All help highly appriciated > Best regards > > Ole Jensen > -------------------------------------------------------------------------------- > _______________________________________________ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor