(elmo-nntp-create-msgdb-from-overview-string): Decode
authorteranisi <teranisi>
Mon, 21 Mar 2005 01:09:43 +0000 (01:09 +0000)
committerteranisi <teranisi>
Mon, 21 Mar 2005 01:09:43 +0000 (01:09 +0000)
encoded words in `from' and `subject' field.

elmo/ChangeLog
elmo/elmo-nntp.el

index 439aa3e..4093c53 100644 (file)
@@ -1,3 +1,8 @@
+2005-03-21  Yuuichi Teranishi  <teranisi@gohome.org>
+
+       * elmo-nntp.el (elmo-nntp-create-msgdb-from-overview-string): Decode
+       encoded words in `from' and `subject' field.
+
 2005-03-20  Hiroya Murata  <lapis-lazuli@pop06.odn.ne.jp>
 
        * modb.el (elmo-msgdb-message-field): Add argument `type'.
index f23a9dd..355e593 100644 (file)
@@ -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))))