Re: Streaming MIME parser

suresh! <suresh_lakshmanan-/[email protected]>
Newsgroups gmane.mail.libetpan.user
Message-ID <[email protected]>
> You can also map the file to memory : 
> see mmap() (2)
 
> that will let you read the file content as if its 
content was in memory.

Thanks for your reply.

Actually I do not want to store the entire contents of
the message in memory. That's why I was asking for a
stream based solution. I do not want to load the
entire contents in my process address space. If the
mail content is heavy then my program cannot perfom
predictably in terms of memory usage in the face of
huge messages.

I was looking for a SAX kind of stuff here :) where
you get events from the MIME parser as it parses the 
stream. Is it possible to do with libetpan?

Thanks,
L.Suresh


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.