decoding technique in incoming email

Hi,

I'm writing some custom code to analyze spam for incoming mail to our mail server.  I need to know what the following encoding method is from the text snippet below.  Have tried several things (UTF-8, MIME, etc) and haven't had any success so far:

Subject: =?UTF-8?B?8J+OgSBCbGFjayBGcmlkYXkgaXMgT04u?=

Thanks!

--Ben
Ben ConnerCTO, SAS developerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dr. KlahnPrincipal Software EngineerCommented:
According to

https://ncona.com/2011/06/using-utf-8-characters-on-an-e-mail-subject/

this is UTF-8 encoded base-64.  There's a PHP example as well.

"The encoding must be either B or Q, these mean base 64 and quoted-printable respectively. You can read the RFC 1342 document for more information about how they work."

If it doesn't decode to printable ... well, I wouldn't be surprised.  After all, it is spam, and it's trying every conceivable way to get somebody's attention.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ben ConnerCTO, SAS developerAuthor Commented:
LOL,...in this case, I don't think it was spam.  Had captured the email temporarily to a client and it was from a major store.  But mail clients have to be able to figure out how to decode them, so it must be doable.

Thanks so much!  Way too much to keep track of...

--Ben
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Email Servers

From novice to tech pro — start learning today.