Re: improving eword-decode.el
[email protected] (守岡 知彦 / MORIOKA Tomohiko) 18 Oct 2005 15:05:51 +0900
| Newsgroups | gmane.mail.emacs.mime.japanese |
|---|---|
| Message-ID | <[email protected]> |
(^_^;; >>>>> In [emacs-mime-ja : No.01990] >>>>> Katsumi Yamaoka <[email protected]> wrote: > FLIM ? encoded words > > > CVS commit akr ;; RMS ;; (^_^; commit commit FLIM release tag branch FLIM 1.14.8 release release commit > emacs-pretest-bug subject > Gnus > > > Subject: =?UTF-8?B?W2lwdC5ydSAjMTYzXSDQkNCy0YLQvtCe0YLQstC10YI6INCc0KHQmjog0KHQ?= =?UTF-8?B?nyDRgtC10YHRgg==?= > > utf-8 > B Gnus > rfc2047.el FLIM eword-decode.el > RFC2047 > > 5. Use of encoded-words in message headers > > [...] > > The 'encoded-text' in an 'encoded-word' must be self-contained; > 'encoded-text' MUST NOT be continued from one 'encoded-word' to > another. This implies that the 'encoded-text' portion of a "B" > 'encoded-word' will be a multiple of 4 characters long; for a "Q" > 'encoded-word', any "=" character that appears in the 'encoded-text' > portion will be followed by two hexadecimal characters. > > MUST NOT > > > This example doesn't violate the above restriction. Each > 'encoded-word' is surely "multiple of 4 characters long". > > Please note that the above restriction is for > 'encoded-text', not for the underlining coded character set. > So, I think the above document doesn't prohibit diviging > UTF-8 byte sequence at non-character boundary. encoded-text encoded-word charset encoded-text Some character sets use code-switching techniques to switch between "ASCII mode" and other modes. If unencoded text in an 'encoded-word' contains a sequence which causes the charset interpreter to switch out of ASCII mode, it MUST contain additional control codes such that ASCII mode is again selected at the end of the 'encoded-word'. (This rule applies separately to each 'encoded-word', including adjacent 'encoded-word's within a single header field.) UTF-8 STD 11 US-ASCII encoded-word encoded-word charset encoded-word US-ASCII charset > Gnus > RMS > :) ;; RMS 17:30 ;; ;; :-) ;; (^_^;;; > FLIM ? encoded words > > > CVS commit encode decode encoded-word US-ASCII reset encoded-word encoded-word -- (MORIOKA Tomohiko) <[email protected]>