Re: Problems extracting attachment from email

2005-04-08 Thread Max M
foten wrote: The problem I'm having is when I'm trying to extract the attachement using f=open(Filename, "wb") f.write(msg.get_payload(decode=1)) f.close() Not the whole message is decoded and stored! When only trying f.write(msg.get_payload()) I see that the last 25

Re: Problems extracting attachment from email

2005-04-08 Thread foten
Lee Harr <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > On 2005-04-07, foten <[EMAIL PROTECTED]> wrote: > > The problem I'm having is when I'm trying to extract the > > attachement using > > f=open(Filename, "wb") > > f.write(msg.get_payload(decode=1)) > >

Re: Problems extracting attachment from email

2005-04-07 Thread Lee Harr
On 2005-04-07, foten <[EMAIL PROTECTED]> wrote: > The problem I'm having is when I'm trying to extract the > attachement using > f=open(Filename, "wb") > f.write(msg.get_payload(decode=1)) > f.close() > Not the whole message is decoded and stored! > When only trying >

Problems extracting attachment from email

2005-04-07 Thread foten
Hi community, This is the task I'm struggling with: - A user sends me an email with the subject '*3gp*' including an attached .3gp-file. - I then fetch that email, extracts the attachement and stores it localy as a file. - I then run a python-script that parses the stored file and ge