Commits (1)
...@@ -4824,6 +4824,13 @@ void export_echomail(const char* sub_code, const nodecfg_t* nodecfg, bool rescan ...@@ -4824,6 +4824,13 @@ void export_echomail(const char* sub_code, const nodecfg_t* nodecfg, bool rescan
smb_freemsgmem(&msg); smb_freemsgmem(&msg);
continue; continue;
} }
if((scfg.sub[subnum]->misc & SUB_ASCII) && smb_msg_is_utf8(&msg)) {
utf8_to_cp437_inplace(buf);
utf8_to_cp437_inplace(hdr.to), ascii_str(hdr.to);
utf8_to_cp437_inplace(hdr.from), ascii_str(hdr.from);
utf8_to_cp437_inplace(hdr.subj), ascii_str(hdr.subj);
}
lprintf(LOG_DEBUG,"Exporting %s message #%u from %s to %s in area: %s" lprintf(LOG_DEBUG,"Exporting %s message #%u from %s to %s in area: %s"
,scfg.sub[subnum]->code, msg.hdr.number, msg.from, msg.to, tag); ,scfg.sub[subnum]->code, msg.hdr.number, msg.from, msg.to, tag);
fmsgbuflen=strlen((char *)buf)+4096; /* over alloc for kludge lines */ fmsgbuflen=strlen((char *)buf)+4096; /* over alloc for kludge lines */
......