* elmo-util.el (elmo-buffer-field-primitive-condition-match): Use
authoryoichi <yoichi>
Mon, 9 Feb 2004 03:31:05 +0000 (03:31 +0000)
committeryoichi <yoichi>
Mon, 9 Feb 2004 03:31:05 +0000 (03:31 +0000)
elmo-multiple-field-body instead of std11-field-body to check all
headers.

elmo/ChangeLog
elmo/elmo-util.el

index 97b9cc7..bcce1a8 100644 (file)
@@ -1,3 +1,9 @@
+2004-02-08  Yoichi NAKAYAMA  <yoichi@geiin.org>
+
+       * elmo-util.el (elmo-buffer-field-primitive-condition-match): Use
+       elmo-multiple-field-body instead of std11-field-body to check all
+       headers.
+
 2004-02-07  TAKAHASHI Kaoru  <kaoru@kaisei.org>
 
        * elmo-util.el (elmo-cache-expire): Completion require match "age"
 
        * elmo-util.el (elmo-msgdb-insert-file-header): Moved from
        modb-legacy.el.
-       (elmo-multiple-field-body): Moved from elmo-util.el.
+       (elmo-multiple-field-body): Moved from elmo-msgdb.el.
 
        * elmo-msgdb.el (elmo-multiple-field-body): Moved to elmo-util.el.
 
index f07b296..cf169cb 100644 (file)
@@ -864,11 +864,12 @@ the directory becomes empty after deletion."
           (setq result (search-forward (elmo-filter-value condition)
                                        nil t))))
      (t
-      (let ((fval (std11-field-body (elmo-filter-key condition))))
+      (dolist (fval (elmo-multiple-field-body (elmo-filter-key condition)))
        (if (eq (length fval) 0) (setq fval nil))
        (if fval (setq fval (eword-decode-string fval)))
-       (setq result (and fval (string-match
-                               (elmo-filter-value condition) fval))))))
+       (setq result (or result
+                        (and fval (string-match
+                                   (elmo-filter-value condition) fval)))))))
     (if (eq (elmo-filter-type condition) 'unmatch)
        (setq result (not result)))
     result))