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==?=" <[email protected]> (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==?=" <[email protected]>'; $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: [email protected] For additional commands, e-mail: [email protected] http://learn.perl.org/
