]> git.eshelyaron.com Git - emacs.git/commitdiff
Be more permissive when interpreting IMAP mail headers
authorLars Ingebrigtsen <larsi@gnus.org>
Mon, 28 Oct 2019 12:31:37 +0000 (13:31 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 28 Oct 2019 12:31:37 +0000 (13:31 +0100)
* lisp/gnus/nnimap.el (nnimap-transform-headers): Some mail
doesn't have space after the colon of the header name.  Don't
ignore these.

lisp/gnus/nnimap.el

index 1ec5522831dab914af5e5f4bfb1c10e7320a609d..856ac75cd66c1ead9fec06c80b1bcd10d9dee1f7 100644 (file)
@@ -271,8 +271,8 @@ textual parts.")
                (save-excursion
                  (forward-line)
                  (null (looking-at-p
-                        ;; We're expecting a mail header.
-                        "^[!-9;-~]+:[[:space:]]"))))
+                        ;; We're expecting a mail-ish header.
+                        "^[!-9;-~]+:[[:space:]]?"))))
            (delete-region (line-beginning-position)
                           (1+ (line-end-position)))
          (setq lines nil)