I need replace email message from win1251 to koi8r encoding.
In use perl im create file cyrillic.h, here is content:

Code:
$tab{"KOI"}="áâ÷çäå³öúéêëìíîïðòóôõæèãþûý\377ùøüàñÁÂ×ÇÄÅ£ÖÚÉÊËÌÍÎÏÐÒÓÔÕÆÈÃÞÛÝßÙØÜÀÑ";
...