[Citadel Development] [PATCH] webcit/dav_get.c: decode quoted-printable messages

2012-12-03 Thread matt
This patch implements decoding of Quoted-Printable encoded calendar/address data - messages that have the 'Content-Transfer-Encoding: Quoted-Printable' header from MSG2 output. I'm not sure how such messages come into being, but at least this patch ensures they are properly decoded in DAV requests

[Citadel Development] Re: [PATCH] webcit/dav_get.c: decode quoted-printable messages

2012-12-03 Thread dothebart
well, two points... make it... if (!is_qp !strncasecmp(buf, "Content-Transfer-Encoding", 25)) and... if (strncasecmp(buf[26],"Quoted-Printable", 16)) {is probably not all accurate. you should first char *pch = strchr (buf[26], ':') (or was it '=' here?) and then skip as many blanks as found