ISO-2022-JP support

---------

From: Hisashi Gotoh (gotoh@horae.dti.ne.jp)
Date: Wed Apr 04 2001 - 15:20:33 CDT


Hello, I added support to Hypermail 2.1.0 for ISO-2022-JP(RFC1468)
encoding messages. I attach a patch to this mail.

ISO-2022-JP is a standard of Japanese e-mail.

To process the Japanese e-mail, set a new option "iso2022jp" to 1.
Of course, it works good as for US-ASCII messages with "iso2022jp=1".

* To Japanize

  Difficult points to process the Japanese string are to parse the URL
  or e-mail string and to convert the HTML specific characters
  (e.g. "). To solve these, I added new functions,
  iso2022jp_state() and hm_strchr().

  iso2022_state() evalutes the target string if it is US-ASCII or
  ISO-2022-JP. hm_strchr() is same as strchr(), but it processes only
  US-ASCII atring.

* Bug ?

  "Messages sorted by: " field is empty if there is un-set "-c config"
  option.

You can see sample output, below URL:

        http://www.horae.dti.ne.jp/~gotoh/dist/hypermail/sample/

If there is no problem with this patch, I wish it is included in the
next release :)

Regards,

-- Hisashi Gotoh



---------

This archive was generated by hypermail 2.1.5.