Subject: bug#56179: 29.0.50; Gnus not opening imap group - wrong type argument, listp

From: Pankaj Jangid <[email-masked]>
Date: Fri, 24 Jun 2022 11:16:20 +0530

attached small patch fixes the issue.

>From 9bd0872326c7dd88eaa80476e669c075c91f3894 Mon Sep 17 00:00:00 2001
From: Pankaj Jangid <[email-masked]>
Date: Fri, 24 Jun 2022 11:13:39 +0530
Subject: [PATCH] "ranges" should always be a list

---
 lisp/gnus/nnimap.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el
index c158367b73..a69b5c7727 100644
--- a/lisp/gnus/nnimap.el
+++ b/lisp/gnus/nnimap.el
@@ -239,7 +239,7 @@ nnimap-retrieve-headers
     (when (nnimap-change-group group server)
       (with-current-buffer (nnimap-buffer)
 	(erase-buffer)
-        (let ((ranges (gnus-compress-sequence articles))
+        (let ((ranges (gnus-compress-sequence articles t))
               sequence)
           ;; If we have a lot of ranges, split them up to avoid
           ;; generating too-long lines.  (The limit is 8192 octects,
-- 
2.30.2