[Bese-devel] rfc2388

Lou Vanek vanek at acd.net
Sun Jul 16 22:37:30 UTC 2006


if anybody out there is using clisp and needs an rfc2388 mime parser,
the attached code will probably save you some time.

character stream entry point: parse-mime-c
binary    stream entry point: parse-mime-b

parse-mime-b is pretty much just a carbon copy of what's already in
rfc2388; and parse-mime-c has a more robust parser to take care of
clisp's end-of-line read quirks on windows systems.
This code should work with all CLs since there is no clisp-specific code.
There are two minor additional features:
- parse-mime-c can parse dirtier mime headers
- there is an option to set maximum mime size to avoid one form of DoS.

Original code cribbed from Michael Weber michaelw+tbnl at
foldr.org (thanks Michael!).

-lv

-------------- next part --------------
A non-text attachment was scrubbed...
Name: rfc2388.lisp.gz
Type: application/x-gzip
Size: 10708 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/bese-devel/attachments/20060716/28bfdb84/attachment.bin>


More information about the bese-devel mailing list