Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit a9f8ccc3 authored by rswindell's avatar rswindell

Export a default CHRS: (charset) value of "UTF-8" when any of the header fields

contain UTF-8 characters.
parent 89d0a422
......@@ -1240,7 +1240,7 @@ int create_netmail(const char *to, const smbmsg_t* msg, const char *subject, con
fprintf(fp,"\1%.512s\r",(char*)msg->hfield_dat[i]);
const char* charset = msg->ftn_charset;
if(charset == NULL) {
if(smb_msg_is_utf8(msg))
if(smb_msg_is_utf8(msg) || (msg->hdr.auxattr & MSG_HFIELDS_UTF8))
charset = FIDO_CHARSET_UTF8;
else if(str_is_ascii(body))
charset = FIDO_CHARSET_ASCII;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment