gnus-request-head: when gnus-override-method is set, allow the backend
authorDave Abrahams <dave@boostpro.com>
Mon, 20 Aug 2012 02:17:33 +0000 (22:17 -0400)
committerDave Abrahams <dave@boostpro.com>
Wed, 29 Aug 2012 17:48:11 +0000 (10:48 -0700)
`request-head' function to determine the group name on its own.

Without this fix you can end up with some bogus group name that has
nothing to do with the select method actually used.

lisp/gnus-int.el

index 3aee7c6..bc3ba18 100644 (file)
@@ -599,7 +599,8 @@ real group. Does nothing on a real group."
            clean-up t))
      ;; Use `head' function.
      ((fboundp head)
-      (setq res (funcall head article (gnus-group-real-name group)
+      (setq res (funcall head article
+                         (and (not gnus-override-method) (gnus-group-real-name group))
                         (nth 1 gnus-command-method))))
      ;; Use `article' function.
      (t