process-query: Improve results of "submitter" query.
authorRicardo Wurmus <rekado@elephly.net>
Sun, 2 Sep 2018 20:33:55 +0000 (22:33 +0200)
committerRicardo Wurmus <rekado@elephly.net>
Sun, 2 Sep 2018 20:33:55 +0000 (22:33 +0200)
mumi/messages.scm

index f2286871eff5c0752fa410b11446c190609b0337..00f80fd05710728855864a62b7e9829f4462ee1b 100644 (file)
@@ -365,10 +365,11 @@ unprocessed query string and an alist of search attributes."
                   #:attributes ,(cons `(@author string-contains ,who) attrs)
                   #:filters ,fs))
                ;; This is not supported by the Debbugs SOAP service,
-               ;; so we filter locally.
+               ;; so we filter locally.  At least we know that we need
+               ;; bugs where the author is "who".
                (("submitter" who)
                 `(#:terms ,terms
-                  #:attributes ,attrs
+                  #:attributes ,(cons `(@author string-contains ,who) attrs)
                   #:filters ,(cons (lambda (bug)
                                      (string-contains-ci (bug-originator bug)
                                                          who))