« July 2007 | Main | September 2007 »

August 2007 Archives

August 24, 2007

Parsing emails in ColdFusion if you can't use CFPOP

For too long now, my previous posts on the topic of passing emails to ColdFusion have promised that a future post will deal with how to parse emails in ColdFusion. So I can now happily (and somewhat sheepishly) announce that code for parsing is finally here.

I have a new project up called emailParse.cfc. You pass it the source text of an email, and it returns a struct with all headers, body parts, and attachments parsed out. There are even functions to forward the email on to another address, to try to get the email's context (ie, whether it's a hard bounce, soft bounce, out-of-office reply, or otherwise), and whether the email might be part of a loop. The whole idea is to let you programmatically deal with the emails that come into your server in real time, instead of relying on intermittent CFPOP calls from a scheduled task.

So feel free to try out the email parsing code, and let me know what you think.

April 2008

Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30
Creative Commons License
This weblog is licensed under a Creative Commons License.