Gnus development mailing list
 help / color / mirror / Atom feed
* rfc2047.el bug?
@ 2003-09-10  4:29 Katsumi Yamaoka
  2003-09-11  0:40 ` Jesper Harder
  0 siblings, 1 reply; 3+ messages in thread
From: Katsumi Yamaoka @ 2003-09-10  4:29 UTC (permalink / raw)


Hi,

It actually may not cause a problem, but there's something wrong
in rfc2047.el.  This is an extract from rfc2047.txt:

   An 'encoded-word' may not be more than 75 characters long, including
   'charset', 'encoding', 'encoded-text', and delimiters.  If it is
   desirable to encode more text than will fit in an 'encoded-word' of
   75 characters, multiple 'encoded-word's (separated by CRLF SPACE) may
   be used.

   While there is no limit to the length of a multiple-line header
   field, each line of a header field that contains one or more
   'encoded-word's is limited to 76 characters.

   The length restrictions are included both to ease interoperability
   through internetwork mail gateways, and to impose a limit on the
   amount of lookahead a header parser must employ (while looking for a
   final ?= delimiter) before it can decide whether a token is an
   "encoded-word" or something else.

Gnus sometimes encodes a Japanese-English mixture text to the
line length exceeding 76 characters.  For example:

Subject: 寿ju 限ge 無mu 寿ju 限ge 無mu 五go 劫kou

Subject: =?iso-2022-jp?b?GyRCPHcbKEJqdSAbJEI4QhsoQmdlIBskQkw1GyhCbXUgGyRCPHcbKEJqdQ==?=
 =?iso-2022-jp?b?IBskQjhCGyhCZ2UgGyRCTDUbKEJtdSAbJEI4XhsoQmdvIBskQjllGyhCaw==?=
 =?iso-2022-jp?b?b3U=?=

The following is a case of using FLIM's eword-encode.el:

Subject: =?ISO-2022-JP?b?GyRCPHcbKEJqdSAbJEI4QhsoQmdlIBskQkw1GyhCbXUg?=
 =?ISO-2022-JP?b?GyRCPHcbKEJqdSAbJEI4QhsoQmdlIBskQkw1GyhCbXUgGyRCOF4bKEJn?=
 =?ISO-2022-JP?b?byAbJEI5ZRsoQmtvdQ==?=
-- 
Katsumi Yamaoka <yamaoka@jpl.org>



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-09-11  1:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-10  4:29 rfc2047.el bug? Katsumi Yamaoka
2003-09-11  0:40 ` Jesper Harder
2003-09-11  1:34   ` Katsumi Yamaoka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).