1. email parser?

Hello,

Does anybody have a freely available email message parser include file? 

Kind regards,

Salix

new topic     » topic index » view message » categorize

2. Re: email parser?

Salix wrote:
> 
> Hello,
> 
> Does anybody have a freely available email message parser include file? 
> 
> Kind regards,
> 
> Salix

What exactly are your trying to parse out?  For the MIME headers, each 
entry is on a separate line.  You can use x = find(':',mime_line) to split 
them into key/value pairs.  Or if you're looking for a specific value, you
can use x = match("What I\'m looking for",message).  Because each email is
so different from any other, and the processing needs are so different
(are you writing a client, a spam filter, or a delivery agent?), the
parsing requirements are going to depend a lot on what your ultimate goal is.
I don't think you're going to find a generic MIME parsing library in any
language; but I'd be happy to answer any questions you have as you write
one for your particular application.

Mike Sabal

new topic     » goto parent     » topic index » view message » categorize

3. Re: email parser?

> What exactly are your trying to parse out?  

A similar email board as EUforum is. (But potentially I'd 
also try to handle attachments.)

> Because each email is so different from any other ... 

That's the point. The parser I wrote is rather simple
though mostly it works fine but in some of the cases 
(spec. chars, attachments, etc.) it does not. 

Rgds,

Salix

new topic     » goto parent     » topic index » view message » categorize

4. Re: email parser?

Salix wrote:
> 
> That's the point. The parser I wrote is rather simple
> though mostly it works fine but in some of the cases 
> (spec. chars, attachments, etc.) it does not. 
> 

Perhaps one of these would work for decoding the attachments:
http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=base64

You'd have to look for the Content-Transfer-Encoding: tag to determine

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu