From 0c2244f42c2b6bc89d1e5199e74c0526512413ca Mon Sep 17 00:00:00 2001 From: teranisi Date: Mon, 21 Mar 2005 01:09:43 +0000 Subject: [PATCH] (elmo-nntp-create-msgdb-from-overview-string): Decode encoded words in `from' and `subject' field. --- elmo/ChangeLog | 5 +++++ elmo/elmo-nntp.el | 12 ++++++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/elmo/ChangeLog b/elmo/ChangeLog index 439aa3e..4093c53 100644 --- a/elmo/ChangeLog +++ b/elmo/ChangeLog @@ -1,3 +1,8 @@ +2005-03-21 Yuuichi Teranishi + + * elmo-nntp.el (elmo-nntp-create-msgdb-from-overview-string): Decode + encoded words in `from' and `subject' field. + 2005-03-20 Hiroya Murata * modb.el (elmo-msgdb-message-field): Add argument `type'. diff --git a/elmo/elmo-nntp.el b/elmo/elmo-nntp.el index f23a9dd..355e593 100644 --- a/elmo/elmo-nntp.el +++ b/elmo/elmo-nntp.el @@ -753,10 +753,14 @@ Don't cache if nil.") :number num :references (elmo-msgdb-get-last-message-id (aref ov-entity 5)) - :from (elmo-delete-char ?\" - (or (aref ov-entity 2) - elmo-no-from)) - :subject (or (aref ov-entity 1) + :from (elmo-with-enable-multibyte + (eword-decode-string + (elmo-delete-char ?\" + (or (aref ov-entity 2) + elmo-no-from)))) + :subject (or (elmo-with-enable-multibyte + (eword-decode-string + (aref ov-entity 1))) elmo-no-subject) :date (aref ov-entity 3) :size (string-to-int (aref ov-entity 6)))) -- 1.7.10.4