Commit d15d72b2 authored by Eric Abrahamsen's avatar Eric Abrahamsen

Check Gnus group names when reading from browse server

* lisp/gnus/gnus-srvr.el (gnus-browse-read-group): If the group in
  question belongs to the native server, the name has to be shortened
  before we check it with `gnus-get-info'. It might work otherwise
  with nntp, but for backends like nnmaildir that have their own
  accounting system, creating an ephemeral group won't work.
parent e0799e67
Pipeline #108 failed with stage
in 22 minutes and 24 seconds
...@@ -925,7 +925,11 @@ buffer. ...@@ -925,7 +925,11 @@ buffer.
"Enter the group at the current line. "Enter the group at the current line.
If NUMBER, fetch this number of articles." If NUMBER, fetch this number of articles."
(interactive "P") (interactive "P")
(let ((group (gnus-browse-group-name))) (let* ((full-name (gnus-browse-group-name))
(group (if (gnus-native-method-p
(gnus-find-method-for-group full-name))
(gnus-group-short-name full-name)
full-name)))
(if (or (not (gnus-get-info group)) (if (or (not (gnus-get-info group))
(gnus-ephemeral-group-p group)) (gnus-ephemeral-group-p group))
(unless (gnus-group-read-ephemeral-group (unless (gnus-group-read-ephemeral-group
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment