]> git.eshelyaron.com Git - emacs.git/commitdiff
Adjust regexp for parsing IMAP header response
authorEric Abrahamsen <eric@ericabrahamsen.net>
Mon, 22 Jul 2019 17:00:06 +0000 (10:00 -0700)
committerEric Abrahamsen <eric@ericabrahamsen.net>
Mon, 22 Jul 2019 19:50:33 +0000 (12:50 -0700)
* lisp/gnus/nnimap.el (nnimap-transform-headers): The first header
might have no value, or a continuation header might start with a
newline.

lisp/gnus/nnimap.el

index 49b997cb0b8086854412ada99b91f22a9a4ac08a..ad2b1a4fb636c10f2797058f267196e8f307db24 100644 (file)
@@ -270,7 +270,7 @@ textual parts.")
                  (forward-line)
                  (null (looking-at-p
                         ;; We're expecting a mail header.
-                        "^[!-9;-~]+: "))))
+                        "^[!-9;-~]+:[[:space:]]"))))
            (delete-region (line-beginning-position)
                           (1+ (line-end-position)))
          (setq lines nil)