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
<[email protected]>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
> [email protected]
> https://lists.nongnu.org/**mailman/listinfo/chicken-users<https://lists.nongnu.org/mailman/listinfo/chicken-users>
>
_______________________________________________
Chicken-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/chicken-users