unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: "Gerd Möllmann" <gerd.moellmann@gmail.com>
Cc: Eli Zaretskii <eliz@gnu.org>, Andrew G Cohen <cohen@andy.bu.edu>,
	65447@debbugs.gnu.org
Subject: bug#65447: 30.0.50; Gnus: No such function: nnfolder-server-opened
Date: Tue, 22 Aug 2023 21:18:08 -0700	[thread overview]
Message-ID: <87wmxmgznj.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <m2y1i3yp7y.fsf@Mini.fritz.box> ("Gerd Möllmann"'s message of "Tue, 22 Aug 2023 19:13:53 +0200")

Gerd Möllmann <gerd.moellmann@gmail.com> writes:

> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>
>> Eli Zaretskii <eliz@gnu.org> writes:
>>
>>>> From: Gerd Möllmann <gerd.moellmann@gmail.com>
>>>> Date: Tue, 22 Aug 2023 09:29:39 +0200
>>>> 
>>>> Gerd Möllmann <gerd.moellmann@gmail.com> writes:
>>>> 
>>>> > I get the following error when starting Gnus with M-x gnus.
>>>> >
>>>> >   No such function: nnfolder-server-opened
>>>> >
>>>> > The function nnfolder-server-opened is indeed defined nowhere I can
>>>> > find.  In case it matters, I had a Gnus autosave file.  After M-x gnus,
>>>> > I answered 'n' to the question if the autosave file should be used.
>>>> > After that, the error is signaled.
>>
>> This is almost certainly the source of the problem. Your .newsrc.eld
>> file should have entries for groups looking like:
>>
>> ("nnfolder+archive:sent.2022-02" 3 ((1 . 1)) ((unexist) (seen 1))
>>  (nnfolder
>>   "archive" (nnfolder-directory "~/.mail/archive")
>>   (nnfolder-active-file "~/.mail/archive/active")
>>   (nnfolder-get-new-mail nil)
>>   (nnfolder-inhibit-expiry t)))
>>
>> Long story short, at Gnus startup time the `nnfolder' symbol at the head
>> of the method list will get turned into a `require' call for the
>> appropriate library, so the nnfolder functions should be available early
>> on.
>
> My .newsrc.eld contains, among other stuff
>
> (setq gnus-server-alist
>       '(("archive" nnfolder "archive"
> 	 (nnfolder-directory "~/Mail/archive")
> 	 (nnfolder-active-file "~/Mail/archive/active")
> 	 (nnfolder-get-new-mail nil)
> 	 (nnfolder-inhibit-expiry t))))
>
> (setq gnus-topic-topology '(("Gnus" visible) (("misc" visible))))
>
> (setq gnus-topic-alist
>       '(("misc"
> 	 "INBOX"
> 	 "Emacs"
> 	 "[Google Mail]/Entw\303\274rfe"
> 	 "[Google Mail]/Markiert"
> 	 "nndraft:drafts"
> 	 "[Google Mail]/Alle Nachrichten"
> 	 "[Google Mail]/Gesendet"
> 	 "[Google Mail]/Papierkorb"
> 	 "[Google Mail]/Spam"
> 	 "[Google Mail]/Wichtig"
> 	 "Notes" "[Gmail]/Drafts"
> 	 "Emacs/Emacs"
> 	 "nnfolder+archive:sent.2022-06")
> 	("Gnus")))
>
> Above these, there's also a (setq gnus-newsrc-alist '(...)) with a large
> list containomg references to nnfolder, e.g. (nnfolder-inhibit-expiry
> t), but since that list is quoted...

Yes, it's `gnus-newsrc-alist' that will contain group definitions,
including seven (it looks like) for your archive groups, each one with
an identical method definition looking like:

(nnfolder "archive"
	  (nnfolder-directory "~/Mail/archive")
	  (nnfolder-active-file "~/Mail/archive/active")
	  (nnfolder-get-new-mail nil)
	  (nnfolder-inhibit-expiry t))

I know the file is a bit eye-watering to look at, but try to confirm
that you have seven archive groups in there, and each one ends with the
form above.

It's pretty weird that you're seeing this with your archive server,
because that one gets special treatment. Take a close look at the file
first, and maybe we can try something else.

Eric





  reply	other threads:[~2023-08-23  4:18 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-22  5:18 bug#65447: 30.0.50; Gnus: No such function: nnfolder-server-opened Gerd Möllmann
2023-08-22  7:29 ` Gerd Möllmann
2023-08-22 11:20   ` Eli Zaretskii
2023-08-22 16:25     ` Eric Abrahamsen
2023-08-22 17:13       ` Gerd Möllmann
2023-08-23  4:18         ` Eric Abrahamsen [this message]
2023-08-23  5:18           ` Gerd Möllmann
2023-08-23 17:01             ` Eric Abrahamsen
2023-08-24  8:56               ` Gerd Möllmann
2023-08-27  7:16                 ` Gerd Möllmann
2023-08-22  7:37 ` Andreas Schwab
2023-08-22  7:54   ` Gerd Möllmann

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87wmxmgznj.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=65447@debbugs.gnu.org \
    --cc=cohen@andy.bu.edu \
    --cc=eliz@gnu.org \
    --cc=gerd.moellmann@gmail.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).