Re: content encoding etc. (updated)
Sam Varshavchik <[email protected]> Sat, 22 May 2004 23:09:39 -0400
| Newsgroups | gmane.mail.sqwebmail |
|---|---|
| Message-ID | <[email protected]> |
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.
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQBAsBXzx9p3GYHlUOIRAuhjAJ4mpcCGhgXkurZsSTntOi0a1VgeYwCeO3IM gqgG0r9Tl7G9NI6sJycrprg= =TA5V -----END PGP SIGNATURE-----