Thank you Paul,

That gave me something to work on.

Helge

-----Original Message-----
From: Paul Vernon [mailto:paul.ver...@web-architect.co.uk] 
Sent: 8. april 2009 12:54
To: cf-talk
Subject: RE: How to "decode" e-mail subject ?


> 
> This:B?W1ZpZGVyZXNlbmR0IGZyYSBXUyBTdXBwb3J0XSBQYXlFeCDDuG5za2VyIGRl?=
>  =?utf-8?B?ZyBnb2QgcMOlc2tl?=
> 

I missed something... It's not quoted printable, it's binary encoded. Q for
quoted-printable and B for binary.

You need to look for =?B? Or =?Q? At the beginning of the string. If its
=?B? Then take everything between =?B? and ?= and base64 decode it.

W1ZpZGVyZXNlbmR0IGZyYSBXUyBTdXBwb3J0XSBQYXlFeCDDuG5za2VyIGRl decodes as
[Videresendt fra WS Support] PayEx ønsker de

ZyBnb2QgcMOlc2tl decodes as g god påske

To handle all eventualities, you will still need a quoted-printable decoder
to handle subjects that start with =?Q?











~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321439
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to