Hi folks. 

I'm writing a mail filter which accepts emails from our 'fax-to-email' gateway 
and I'm struggling to handle the input. I'm getting the following:


Subject
=?ISO-8859-1?B?UmVjZWl2ZWQgRnJvbSAwMTEzMzk5NzM3MiAgMDYvMTEvMjAx?=
 =?ISO-8859-1?B?MiAxMDo0OA==?=

From
"=?ISO-8859-1?B?UmluZ3dheXMgRG9uY2FzdGVy?=
 =?ISO-8859-1?B?IEtpYSBTaG93cm9vbQ==?="
  <rmg-cop...@ringways.co.uk>

(rmg-copier and faxlist are internal routing emails)

What is the best method of decoding these strings.  Google pointed me to 
Encode.

I've tried variations of

my $from='"=?ISO-8859-1?B?UmluZ3dheXMgRG9uY2FzdGVy?=
 =?ISO-8859-1?B?IEtpYSBTaG93cm9vbQ==?="
  <rmg-cop...@ringways.co.uk>';
$from=decode('iso-8859-1',$from);
print "from='$from'\n";

but the string doesn't get decoded.

-- 
Gary Stainburn
Group I.T. Manager
Ringways Garages
http://www.ringways.co.uk 

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to