]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix regexp in IMAP search-string preparation
authorEric Abrahamsen <eric@ericabrahamsen.net>
Fri, 18 Dec 2020 03:16:00 +0000 (19:16 -0800)
committerEric Abrahamsen <eric@ericabrahamsen.net>
Fri, 18 Dec 2020 03:16:52 +0000 (19:16 -0800)
* lisp/gnus/gnus-search.el (gnus-search-run-search): This was failing
to catch all of X-GM-RAW.

lisp/gnus/gnus-search.el

index 829e0fa3ad19bcfd38efb8b14323b5dc8efc6ecf..16f3a024aa607d35f24565e3eafe9f213c9dfbc8 100644 (file)
@@ -1071,7 +1071,7 @@ Responsible for handling and, or, and parenthetical expressions.")
       ;; A bit of backward-compatibility slash convenience: if the
       ;; query string doesn't start with any known IMAP search
       ;; keyword, assume it is a "TEXT" search.
-      (unless (and (string-match "\\`[[:word:]]+" q-string)
+      (unless (and (string-match "\\`[^ [:blank:]]+" q-string)
                   (memql (intern-soft (downcase
                                        (match-string 0 q-string)))
                          gnus-search-imap-search-keys))