Gnus development mailing list
 help / color / mirror / Atom feed
From: "Juan José García-Ripoll" <juanjose.garciaripoll@gmail.com>
To: ding@gnus.org
Subject: Missing first group in group list
Date: Thu, 21 Jan 2021 12:13:00 +0100	[thread overview]
Message-ID: <864kjay24j.fsf@csic.es> (raw)

Hi,

I have been tracking a problem when using my own backends, which
actually seems to be a bug in Gnus. Any help in determining this would
be appreciated.

Essentially the problem is in this function

(defun gnus-group-prepare-flat (level &optional predicate lowest regexp)
 ...
      ;; List living groups, according to order in `gnus-group-list'.
      (dolist (g (cdr gnus-group-list))
        (setq info (gnus-get-info g)
	      group (gnus-info-group info)

This function drops the first group in the list, probably because it
assumes it is the dummy.group, but in my system it is never so. In my
working machine I have

  (setq gnus-select-method '(nnnil ""))
  (setq gnus-secondary-select-methods
        '((nnmaild "archived"
                  (nnmaild-directory "/path/to/Maildir"))))

In this order the list of groups luckily ends up being

   ("nnimap+work:Trash" ... "dummy.group" "nndraft:drafts")

so that the group that is lost is trivial.

However if I add one more backend

  (setq gnus-secondary-select-methods
        '((nnmaild "archived"
                  (nnmaild-directory "/path/to/Maildir"))
          (nnimap "work"
                   (nnimap-address "mail.server.at.work")
                   (nnimap-server-port 993)
                   (nnimap-stream ssl)
                   (nnimap-fetch-partial-articles t)
                   (nnmail-expiry-target "nnimap+work:Trash")
                   (nnir-search-engine imap))))

the group that is lost is my last archive folder in /path/to/Maildir

Is this a typo, or is there some sorting logic in gnus-group-list that
is being messed up?

Cheers

Juanjo

-- 
Juan José García Ripoll
http://juanjose.garciaripoll.com
http://quinfog.hbar.es



             reply	other threads:[~2021-01-21 11:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-21 11:13 Juan José García-Ripoll [this message]
2021-01-21 11:58 ` Andreas Schwab
2021-01-21 13:23   ` Juan José García-Ripoll
2021-01-21 17:02   ` Juan José García-Ripoll
2021-01-21 17:12     ` Eric Abrahamsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=864kjay24j.fsf@csic.es \
    --to=juanjose.garciaripoll@gmail.com \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).