unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Gerd Möllmann" <gerd.moellmann@gmail.com>
To: Eric Abrahamsen <eric@ericabrahamsen.net>
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 19:13:53 +0200	[thread overview]
Message-ID: <m2y1i3yp7y.fsf@Mini.fritz.box> (raw)
In-Reply-To: <87msyjhwn7.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Tue, 22 Aug 2023 09:25:32 -0700")

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...

> I'm not sure exactly how you got there, but it sounds like there are
> references to your nnfolder group(s) somewhere in Gnus, but the groups
> are not listed in your .newsrc.eld, so the library is never loaded.
>
> What nnfolder groups show up in your Group buffer (hitting "L" first).
> Are those groups present in your .newsrc.eld file?

and the summary shows

       0: Emacs
       0: Emacs/Emacs
       0: INBOX
       0: Notes
       0: [Gmail]/Drafts
*      0: [Google Mail]/Alle Nachrichten
       0: [Google Mail]/Entwürfe
*      0: [Google Mail]/Gesendet
*      0: [Google Mail]/Markiert
*U     0: [Google Mail]/Papierkorb
 U    72: [Google Mail]/Spam
       5: [Google Mail]/Wichtig
      13: nndraft:drafts
       2: nnfolder+archive:sent.2022-06
      24: nnfolder+archive:sent.2022-07
      31: nnfolder+archive:sent.2022-08
      71: nnfolder+archive:sent.2022-09
      57: nnfolder+archive:sent.2022-10
      15: nnfolder+archive:sent.2022-11
       7: nnfolder+archive:sent.2023-08

Which I think is what gnus-topic-alist has, except for the archives.

Here is what my .gnus looks like.  I think I copied it from
somewhere on the Internet.

(setq mml-secure-openpgp-signers '("xxx")
      ;; We want to be able to read the emails we wrote.
      mml-secure-openpgp-encrypt-to-self t)

(setq gnus-select-method
      '(nnimap "gmail"
	       (nnimap-address "imap.gmail.com")
	       (nnimap-server-port "imaps")
	       (nnimap-stream ssl)))

(setq smtpmail-smtp-server "smtp.gmail.com"
      smtpmail-smtp-service 587)





  reply	other threads:[~2023-08-22 17:13 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 [this message]
2023-08-23  4:18         ` Eric Abrahamsen
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=m2y1i3yp7y.fsf@Mini.fritz.box \
    --to=gerd.moellmann@gmail.com \
    --cc=65447@debbugs.gnu.org \
    --cc=cohen@andy.bu.edu \
    --cc=eliz@gnu.org \
    --cc=eric@ericabrahamsen.net \
    /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).