eword sometimes exceeds 76 columns
Katsumi Yamaoka <[email protected]>
| Newsgroups | gmane.mail.emacs.mime.japanese |
|---|---|
| Organization | Emacsen advocacy group |
| Message-ID | <[email protected]> |
Gnus FLIM [1]
RFC2047
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.
Subject: 12345
Subject: 12345 =?iso-2022-jp?B?GyRCPHc4Qkw1PHc4Qkw1OF45ZSROJDkkakBaJGwbKEI=?=
eword
Subject:
?
* eword-encode.el (mime-encode-header-in-buffer): Don't ignore a
space char at the beginning of a field body.
--- eword-encode.el~ 2004-05-10 11:50:15 +0000
+++ eword-encode.el 2004-05-10 12:02:16 +0000
@@ -689,11 +689,9 @@
(goto-char (point-min))
(let ((default-cs (mime-charset-to-coding-system default-mime-charset))
bbeg end field-name)
- (while (re-search-forward
- (concat "\\(" std11-field-head-regexp "\\)" " ?")
- nil t)
- (setq bbeg (match-end 1)
- field-name (buffer-substring (match-beginning 0) (1- (match-end 1)))
+ (while (re-search-forward std11-field-head-regexp nil t)
+ (setq bbeg (match-end 0)
+ field-name (buffer-substring (match-beginning 0) (1- bbeg))
end (std11-field-end))
(and (delq 'ascii (find-charset-region bbeg end))
(let ((method (eword-find-field-encoding-method
eword
[1] http://www.jpl.org/elips/Gnus-Tips-ja.html#11
--
Katsumi Yamaoka <[email protected]>