* elmo-nntp.el (elmo-nntp-search-primitive): Decode header field.
authorteranisi <teranisi>
Mon, 2 Oct 2000 03:02:44 +0000 (03:02 +0000)
committerteranisi <teranisi>
Mon, 2 Oct 2000 03:02:44 +0000 (03:02 +0000)
elmo/ChangeLog
elmo/elmo-nntp.el

index 4353298..71fc603 100644 (file)
@@ -1,5 +1,7 @@
 2000-10-02  Yuuichi Teranishi  <teranisi@gohome.org>
 
+       * elmo-nntp.el (elmo-nntp-search-primitive): Decode header field.
+
        * elmo-util.el (elmo-buffer-field-primitive-condition-match): Fixed.
 
        * elmo-nntp.el (elmo-nntp-default-use-xhdr): New variable.
index 2ecba97..7d7de84 100644 (file)
@@ -1233,7 +1233,10 @@ Returns a list of cons cells like (NUMBER . VALUE)"
              (delq nil
                    (mapcar
                     (lambda (pair)
-                      (if (string-match val (cdr pair))
+                      (if (string-match val
+                                        (eword-decode-string
+                                         (decode-mime-charset-string
+                                          (cdr pair) elmo-mime-charset)))
                           (car pair)))
                     (elmo-nntp-retrieve-field spec search-key
                                               from-msgs))))