baudehlo/Haraka — Issue #103: Decode error by line
Author: zzdhidden
Created: 2011-10-20 16:24:58+00:00
State: open

Harka is poor for decode the data charset not UTF-8, and I 'm tring to decode mail with node-iconv, at last it failed beacuse harka decode the data line by line.

For exapmle:

I have a base64 encoding string with charset GB2312:

> yMvD8c34MTDUwjIwyNW15yCjqLCyufrVwqOpIL7dwLTX1MD7scjRx7XEz/vPoqOsDQrA+7HI0cfW
> tNX+tbG+1rK/ttO98czs0tG+rc3qyKu/2NbGwcu/qNT6t8a1xMDPvNLL1bb7zNijrL+o1Pq3xsG9
> zcjK3MnLuvOxu7T+srajrNLRsbvLzc350r3UuqGjIL7dwPuxyNHHtefK08yosai1wKOswPuxyNHH
1rTV/rWxvta1xLK/ttO98czsx+Wzv7bUv6ggLi4u

If I decode the whole string, it's correct. but I decode it line by line, it faild.