Hi Gary, On Tue, 6 Nov 2012 10:19:36 +0000 Gary Stainburn <gary.stainb...@ringways.co.uk> wrote:
> 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) > Please see: https://metacpan.org/module/MIME::Words Regards, Shlomi Fish > 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. > -- ----------------------------------------------------------------- Shlomi Fish http://www.shlomifish.org/ "The Human Hacking Field Guide" - http://shlom.in/hhfg To err is human; to apologise — divine. Please reply to list if it's a mailing list post - http://shlom.in/reply . -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/