+2005-10-20 Katsumi Yamaoka <yamaoka@jpl.org>
+
+ * rfc2047.el (rfc2047-decode-encoded-words): Fix the handling of
+ errors.
+
2005-10-19 Reiner Steib <Reiner.Steib@gmx.de>
* mm-bodies.el (mm-decode-string): Call
((char-equal ?Q (nth 1 word))
(setq text (quoted-printable-decode-string
(mm-subst-char-in-string
- ?_ ? (nth 2 word) t)))))
+ ?_ ? (nth 2 word) t)))))
(error
(message "%s" (error-message-string code))
nil)))
(push (cons cs text) rest))
;; Don't decode encoded-word.
(push (cons nil (nth 3 word)) rest)))
- (setq words "")
+ (setq words nil)
(while rest
(setq words (concat
(or (and (setq cs (caar rest))
nil)))
(concat (when (cdr rest) " ")
(cdar rest)
- (unless (string-equal words "") " ")))
+ (when (and words
+ (not (eq (string-to-char words) ? )))
+ " ")))
words)
rest (cdr rest)))
words))