Be more permissive when interpreting IMAP mail headers

* lisp/gnus/nnimap.el (nnimap-transform-headers): Some mail
doesn't have space after the colon of the header name.  Don't
ignore these.
This commit is contained in:
Lars Ingebrigtsen
2019-10-28 13:31:37 +01:00
parent 3478f2f3d6
commit 2864c5201d

View 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)