Solved

Decode an email subject..

Posted on 2001-07-03
2
3,562 Views
Last Modified: 2012-08-13
Hi, I want to decode this email subject:

Subject: =?iso-8859-1?B?VGVzdGluZyBlbWFpbCBoZWFkZXJz?=

It was generated using MailStudio @Message from 3rsoft.com, but I don't know what kind of codification is using..

I tried using the MIME::Base64 decode function but it didn't work.

The "translation" of the subject is: Testing email headers

Could you help me?
There are also another lines of the email header that are encoded, like the From line. I guess that it can be decoded using the same script that will decode the Subject line.

Thanks.
0
Comment
Question by:jcao
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 5

Accepted Solution

by:
Sapa earned 200 total points
ID: 6250963
------------------ sample ---------------------
use MIME::Base64;

if ($subject=~/^=\?[\w-]+\?B\?(.*)\?=$/) {
    $subject=decode_base64($1);
}
-----------------------------------------------

- Sapa
0
 

Author Comment

by:jcao
ID: 6252924
Thank you very much
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Six Sigma Control Plans

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question