From: Lars Ingebrigtsen Date: Mon, 28 Oct 2019 12:31:37 +0000 (+0100) Subject: Be more permissive when interpreting IMAP mail headers X-Git-Tag: emacs-27.0.90~854 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2864c5201d5c4ddfcfe1e8f2fca4168077c7f44f;p=emacs.git 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. --- diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el index 1ec5522831d..856ac75cd66 100644 --- a/lisp/gnus/nnimap.el +++ b/lisp/gnus/nnimap.el @@ -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)