[ccan] [PATCH 2/2] Add rfc822 module for parsing emails
Jonathan Nieder
jrnieder at gmail.com
Sun Jun 10 01:34:39 EST 2012
David Gibson wrote:
> +struct bytestring rfc822_body(struct rfc822_msg *msg)
> +{
[...]
> + if (!msg->body && msg->remainder) {
> + p = memmem(msg->remainder, msg->end - msg->remainder,
> + "\r\n\r\n", 4);
> + if (p) {
> + p += 4;
> + } else {
> + p = memmem(msg->remainder, msg->end - msg->remainder,
> + "\n\n", 2);
Still scary. :)
Thanks for your work,
Jonathan
More information about the ccan
mailing list