Gnus development mailing list
 help / color / mirror / Atom feed
From: Russ Allbery <eagle@eyrie.org>
To: ding@gnus.org
Subject: Re: nnml suddenly not activating groups on startup
Date: Wed, 26 Aug 2020 14:00:34 -0700	[thread overview]
Message-ID: <878se1dswd.fsf@hope.eyrie.org> (raw)
In-Reply-To: <87y2m1jnij.fsf@tullinup.koldfront.dk> ("Adam =?utf-8?Q?Sj?= =?utf-8?Q?=C3=B8gren=22's?= message of "Wed, 26 Aug 2020 20:00:20 +0200")

Adam Sjøgren <asjo@koldfront.dk> writes:

> All¹ of my mail groups have "nnml:" as the last element in
> gnus-newsrc-alist.

> I have a feeling that Gnus sometimes gets confused about servers that
> are the same but mentioned by different definitions. Maybe going all
> "nnml:" or all (nnml "") will unconfuse things?

I tried changing everything to "nnml:" and that caused all of the groups
to not be activated and then, in the server buffer, the nnml server was
left closed after I started Gnus.

I then changed them all to (nnml "") and that fixes the problem (but I
suspect new groups won't have that setting).

So (nnml "") seems to be doing something different than "nnml:" and is
working correctly, and this appears to have something to do with when the
server is opened.  Maybe it's a sequencing issue during startup?

For the record, my select-method configuration is:

 '(gnus-select-method
   '(nntp "news.eyrie.org"
          (nntp-open-connection-function network-only)
          (nntp-connection-timeout 3)))
 '(gnus-secondadry-select-methods '((nnml "")))

> Does your server buffer show multiple nnml-servers?

It does not, but now that you mention this, I feel like at one point I did
see this and "fixed it" by deleting one of the servers.  I should have
remembered that, and that's probably related, although I'm fairly sure my
problems started before that and this was one of my attempts to fix it.

> ¹ Not my archive groups, though, they seem to all carry a copy of the full
> server definition:
>    (nnml "archive" (nnml-directory "~/Mail/archive")
>          (nnml-active-file "~/Mail/archive/active")
>          (nnml-get-new-mail nil)
>          (nnml-inhibit-expiry t))
> as the last element. That seems a little much.

Mine had this in gnus-server-alist and just a reference to "archive" in
the group information, but while I've been working on this problem (and
after it started), I finally got rid of the second nnml server for
archiving and just merged all that stuff into my main nnml server because
I've had no end of problems with having two nnml servers for years.  It
seems to confuse Gnus and I have regularly had Gnus write things into the
archive server instead of the main server in weird edge cases.  The last
straw was that while I was restarting Gnus to try to get to the bottom of
this problem, one time Gnus split all of my incoming mail into the archive
server instead of the main nnml server.

The multiple nnml server support seems kind of buggy, in other words, and
has been for years, although it previously had never irritated me enough
to change it.

-- 
Russ Allbery (eagle@eyrie.org)             <https://www.eyrie.org/~eagle/>


  reply	other threads:[~2020-08-26 21:01 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-26  2:22 Russ Allbery
2020-08-26  3:59 ` Russ Allbery
2020-08-26  7:59 ` Adam Sjøgren
2020-08-26 17:19   ` Russ Allbery
2020-08-26 18:00     ` Adam Sjøgren
2020-08-26 21:00       ` Russ Allbery [this message]
2020-08-26 22:09         ` Eric Abrahamsen
2020-08-26 22:25           ` Russ Allbery
2020-08-26 23:01             ` Eric Abrahamsen
2020-08-26 23:23               ` Russ Allbery
2020-08-27  9:43         ` Adam Sjøgren

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=878se1dswd.fsf@hope.eyrie.org \
    --to=eagle@eyrie.org \
    --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).