Hi, >> As an added optimization, you could try limiting that block of code to >> just when the charset is one of the iso-8859-* charsets. >> >> The following code snippet should help with that: >> >> charset = charset ? g_mime_charset_canon_name (charset) : NULL; >> if (wrapper && charset && g_ascii_strncasecmp (charset, "iso-8859-", 9)) { >> ... >> >> The reason you need to use g_mime_charset_canon_name (if you decide to >> add the optimization) is that mail software does not always use the >> canonical form of the various charset names that they use. Often you >> will get stuff like "latin1" or "iso_8859-1". > > Nice, I'll add it. Updated patch attached. Cheers, Sebastian