Hatuka*nezumi - IKEDA Soji writes:

Updated patch for 4.0.4. I splitted it to 4 subpatches.

# Changes on flowed format are removed. I wish more suggestions.

One other thing that occured to me is that it may not be necessary to explicitly declare UNICODE_HEADER_BASE64 and UNICODE_BODY_BASE64.

For example:

      for (i=0; str[i]; i++)
          if (DOENCODE(str[i]))
              ++cnt;

      if (cnt > i/10)
      {
            /* Use base64 */
      }
      else
      {
            /* Use quoted-printable */
      }

So, if more than 10% of the string contains encodable characters, use base64, otherwise use quoted printable.



Attachment: pgpFGwmvqEXlh.pgp
Description: PGP signature

Reply via email to