* nnimap.el (nnimap-make-thread-query): Quote message-ids for gmail.
authorAndrew Cohen <cohen@andy.bu.edu>
Sun, 24 Jul 2011 13:07:25 +0000 (09:07 -0400)
committerAndrew Cohen <cohen@andy.bu.edu>
Sun, 24 Jul 2011 13:07:25 +0000 (09:07 -0400)
lisp/ChangeLog
lisp/nnimap.el

index 4be8325..afdfb10 100644 (file)
@@ -1,3 +1,7 @@
+2011-07-24  Andrew Cohen  <cohen@andy.bu.edu>
+
+       * nnimap.el (nnimap-make-thread-query): Quote message-ids for gmail.
+
 2011-07-23  Andrew Cohen  <cohen@andy.bu.edu>
 
        * nnir.el (nnir-search-thread): New function to make an nnir group
index 8a0d635..52de488 100644 (file)
@@ -1947,13 +1947,13 @@ textual parts.")
         (refs (split-string
                (or (mail-header-references header)
                    "")))
-       (value
-        (format
-         "(OR HEADER REFERENCES %s HEADER Message-Id %s)"
-         id id)))
+        (value
+         (format
+          "(OR HEADER REFERENCES %S HEADER Message-Id %S)"
+          id id)))
     (dolist (refid refs value)
       (setq value (format
-                  "(OR (OR HEADER Message-Id %s HEADER REFERENCES %s) %s)"
+                  "(OR (OR HEADER Message-Id %S HEADER REFERENCES %S) %s)"
                   refid refid value)))))