From b2f81b7bab92109af02ec5fc2d2b721c70b97f40 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Mon, 4 Jan 2021 10:42:13 +0100 Subject: [PATCH] Fix computation of Lines in nnmaildir * lisp/gnus/nnmaildir.el (nnmaildir--update-nov): Lines is -1 if it's not present; not 0 (probably) (bug#45650). --- lisp/gnus/nnmaildir.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/gnus/nnmaildir.el b/lisp/gnus/nnmaildir.el index 68c31dc4510..e4fd976742c 100644 --- a/lisp/gnus/nnmaildir.el +++ b/lisp/gnus/nnmaildir.el @@ -494,7 +494,7 @@ This variable is set by `nnmaildir-request-article'.") (delete-char 1) (setq nov (nnheader-parse-head t) field (or (mail-header-lines nov) 0))) - (unless (or (zerop field) (nnmaildir--param pgname 'distrust-Lines:)) + (unless (or (<= field 0) (nnmaildir--param pgname 'distrust-Lines:)) (setq nov-mid field)) (setq nov-mid (number-to-string nov-mid) nov-mid (concat (number-to-string attr) "\t" nov-mid)) -- 2.39.5