We archive our email using a series of Perl scripts and log an index of the information to a mySQL database. In many of the 'subject' lines we read from the emails (mostly spam messages) we get encoded text. We need to be able to decode this text using Perl, or perhaps some other method. We currently use Perl 5.6, and can't upgrade to 5.8 at this time because of some compatability issues we have. I understand this kind of decoding is easy in 5.8, but not so in 5.6, but I really need a solution...
An example of the encoded subject is:
=?koi8-r?B?8NLPxMHAINrFzczA?=
- please forgive me if this subject, when decoded, is offensive - I have no idea what it currently says!
Thanks, I think it is commonly used by spammers to try and get round basic filtering systems - and I suspect most subject languages will still be in English.