jader fabiano added the comment:
Hi.
I undestood this problem that It was happening,
I was writting the mime wrong in the attachments. I read a file with size
4M and I've converted to Base64, so I've written in the mime the content.
But i wasn't put the lines with 76 ccharacters
jader fabiano added the comment:
No, The file has 12Mb, because It has attachments. I am going to show an
example.
You can use a file thus:
Date: Tue, May 10:27:17 6 -0300 (BRT)
From: em...@email.com.br
MIME-Version: 1.0
To: exam...@example.com
Subject:example
Content-Type: multipart/mixed
jader fabiano added the comment:
Sorry!
Correct line
self.fileDescriptor = open( file, 'rb')
2014-05-06 16:51 GMT-03:00 jader fabiano :
>
> jader fabiano added the comment:
>
> I am openning a file and I am passing the File Descriptor to this function
> Parse().parse(
jader fabiano added the comment:
I am openning a file and I am passing the File Descriptor to this function
Parse().parse( fp ):
This file has two attachments
Example:
self.fileDescriptor( file, 'rb')
headers = Parser().parse(self.fileDescriptor )
#Here the process starts to consume 1
New submission from jader fabiano:
Use email.parser to catch the mime's header,when a mime has attachments the
process is consuming 100% of the CPU. And It can take until four minutes to
finish the header parser.
--
components: email
messages: 218008
nosy: barry, jader.fa