Every time I write something to read e-mails, I forget about quoted printable. I have some kind of mental block about it. It is the bane of my e-mail reading existence. I got abuse mail from Engadget the other day. First I was surprised they use Google for mail. I don’t know why this still surprises me, but I find it hard to take a company seriously who does this with their mail. It tells me that what something’s perceived cost is, is really the only thing that matters to them. Second, the mail contained a Quoted Printable part. My poor regex was laid low by Quoted Printable.
What’s this in regard to? A future release of TightURL will include a script that analyzes inbound abuse complaints by e-mail and replies to the sender when appropriate. Sadly after realizing it was going to be a major undertaking, and looking around for acceptable PHP code to properly parse the complicated mish-mash that is our beloved Internet mail, I ended up with another class from PHPClasses, 80K of BSD licensed PHP code to parse an e-mail. It continues to bother me that frequently for the sake of something like parsing an e-mail, something which used to be pretty simple, I end up with a class or library that’s several times the size of the script that uses it.