chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] Parsing EMail


From: Ivan Raikov
Subject: Re: [Chicken-users] Parsing EMail
Date: Tue, 26 Mar 2013 05:41:52 +0900

Hi Karsten,

    internet-message provides a parser combinator interface, which is intended to be used as part of other parsers, and the documentation can be a bit confusing. An example of using internet-message is the mbox egg. mbox provides a library mbox-string, which in turn includes a procedure mbox-file->messages:

(mbox-file->messages FILENAME-OR-PORT) => MESSAGE LIST

Unfortunately, internet-message does not parse MIME parts, so indeed  hato is a better choice here. Thanks for your interest and do not hesitate to complain about  the documentation :-)

  -Ivan
 




On Mon, Mar 25, 2013 at 7:27 PM, Karsten Gebbert <address@hidden> wrote:
Hi List,

I'm relatively new to chicken and this list, so bear with me :)

My aim is to parse EMails (for using with procmail, for instance) but I'm a little stuck/confused by my options. I've been playing with hato-mime.scm (hg cloned from google source project), and I also looked at internet-message, but without trying to sound like I'm complaining, the docs are somewhat meager for the beginner that I definitely am :)

So my question is: could somebody point me to some example code for either one or the other library that can get me started? I basicall would like to be able to parse message into they parts (different bodies for content-types, attachments..) and play with them in chicken.

Thanks in advance!

Karsten



_______________________________________________
Chicken-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/chicken-users


reply via email to

[Prev in Thread] Current Thread [Next in Thread]