my favorite part of mbox_parse.c:
/** * List of all C-T-E Types found on httpd-dev and FreeBSD-current: * * Content-Transfer-Encoding: 8bit * Content-Transfer-Encoding: 7bit * Content-Transfer-Encoding: 7BIT * Content-Transfer-Encoding: 7Bit * Content-Transfer-Encoding: 7bit * Content-Transfer-Encoding: 8-bit * Content-Transfer-Encoding: 8BIT * Content-Transfer-Encoding: 8Bit * Content-Transfer-Encoding: 8bit * Content-Transfer-Encoding: BASE64 * Content-Transfer-Encoding: BINARY * Content-Transfer-Encoding: Base64 * Content-Transfer-Encoding: QUOTED-PRINTABLE * Content-Transfer-Encoding: Quoted-Printable * Content-Transfer-Encoding: base64 * Content-Transfer-Encoding: binary * Content-Transfer-Encoding: none * Content-Transfer-Encoding: quoted-printable * Content-Transfer-Encoding: x-uuencode * Content-Transfer-Encoding:7bit * Content-Transfer-Encoding:quoted-printable * * This is why we have RFCs. */
Mail headers suck. I’m surprised there aren’t french, spanish, and portuguese translations of “quoted printable” on there. All the fields suck but I remember mail header date formats being the most wildly random, back when I had to worry about that.
Also, this:
else if (strchr(src, ‘q’)) {
return CTE_QP;
}
is pretty funny.
http://video.google.com/videoplay?docid=7054401183589794595
@Bjorn: Actually, I went to that talk at OSCON. I kinda knew what it was going to be about, but always good to remind yourself that while SOAP/HTTP might seem painful at times, email is worse, far worse.