So, I've had two clients run into this bug now. When doing a getAll with CFPOP, if an email is in an unsupported locale, you get:
An exception occurred while retrieving mail. The cause of this exception was: java.io.UnsupportedEncodingException: unicode-1-1-utf-7
Some research on the ColdFusion Support Forums dug up this thread, which then pointed to a thread at cf-talk that said this was a known Java bug.
So, the question is, what is the best way around it? Sure you can wrap your cfpop call with a try/catch statement, but if you are trying to download a bunch of email, it basically means you are screwed. I'm guessing I'm going to have to write code to getAll, and if this error is thrown, revert to getting one message at a time, which will be slow as heck.
Anyone else encounter this?
Archived Comments
BTW, here's the specific Sun bug for the issue: http://developer.java.sun.c... (requires a (free) login to be set up to access).
Is there any possible temp fix for this in CF? Maybe it should return a blank row for email messages that can't be parsed? I understand this isn't MACR's fault, but it _does_ seem to make getAll useless.
Ray,
Hey - did you ever find an acceptable work-around for this bug? The best I can come up with a CFX tag for 45$ (cfx_pop3). I have a customer fairly hot about it. It really affects newsletter type apps where you are trying to handle bounces.
-Mark
Unfortunately I did not. I'd be willing to bet it gets fixed in Blackstone though.
To be totally accurate, there is a version of CFX_POP3 for circa $15 that will address the problem too.... the $45 version just has extra features like SSL support and bayesian filters.
I realize this is an old thread, but I came across it when searching for a solution to this very issue, and figured I would share the fix that I ultimately found:
http://www.freeutils.net/so...
Works like a charm.