Re: parsing address header fields
Pierre Habouzit <[email protected]> Wed, 1 Jun 2005 16:01:00 +0200
| Newsgroups | gmane.comp.lang.ocaml.lib.net.devel |
|---|---|
| Message-ID | <[email protected]> |
Le Mercredi 1 Juin 2005 15:34, Jesse Guardiani a écrit : > Hello, > > I apologize if this is the wrong list for this question. I didn't see > a users list, and I was afraid the question might not be seen if I > posted on the main INRIA list. Please direct me to the appropriate > list if this isn't it. > > Anyway, I'm using ocamlnet to parse e-mail headers for use in a > filter script. It's working quite well! However, I couldn't figure > out the best way to parse email address headers. For any given header > address field (i.e. CC, TO, FROM) I need to return a List of formal > addresses. I'm not concerned with the human readable portion. > > Is there functionality in ocamlnet to aid me in parsing address > fields? Where should I look? Or do I need to write my own? well, I guess what you are searching for is the Netaddress module : http://ocamlnet.sourceforge.net/manual/refman/Netaddress.html Cheers, -- ·O· Pierre Habouzit ··O [email protected] OOO http://www.madism.org
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBCnb+cvGr7W6HudhwRAqC1AKCED7ymju05do3AHWsHMy1NmmfK/ACgkoHE Ri5/a0wu1OPfqiBATy0anuw= =s7tf -----END PGP SIGNATURE-----