nnimap.el (nnimap-request-thread): Ensure search is performed in correct group.
gnus-int.el (gnus-request-thread): Add group argument.
gnus-sum.el (gnus-request-thread): Use it.
+2011-07-14 Andrew Cohen <cohen@andy.bu.edu>
+
+ * nnimap.el (nnimap-request-thread): Ensure search is performed in
+ correct group.
+
+ * gnus-int.el (gnus-request-thread): Add group argument.
+
+ * gnus-sum.el (gnus-request-thread): Use it.
+
2011-07-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
* gnus-group.el (gnus-read-ephemeral-emacs-bug-group): `debbugs-*'
article (gnus-group-real-name group)
(nth 1 gnus-command-method) buffer)))
-(defun gnus-request-thread (header)
+(defun gnus-request-thread (header group)
"Request the headers in the thread containing the article specified by HEADER."
- (let ((gnus-command-method (gnus-find-method-for-group gnus-newsgroup-name)))
+ (let ((gnus-command-method (gnus-find-method-for-group group)))
(funcall (gnus-get-function gnus-command-method 'request-thread)
- header)))
+ header
+ (gnus-group-real-name group))))
(defun gnus-warp-to-article ()
"Warps from an article in a virtual group to the article in its
'list gnus-newsgroup-headers
(if (gnus-check-backend-function
'request-thread gnus-newsgroup-name)
- (gnus-request-thread header)
+ (gnus-request-thread header gnus-newsgroup-name)
(let* ((last (if (numberp limit)
(min (+ (mail-header-number header)
limit)
(declare-function gnus-fetch-headers "gnus-sum"
(articles &optional limit force-new dependencies))
-(deffoo nnimap-request-thread (header)
- (let* ((id (mail-header-id header))
+(deffoo nnimap-request-thread (header &optional group server)
+ (when (nnimap-possibly-change-group group server)
+ (let* ((id (mail-header-id header))
(refs (split-string
(or (mail-header-references header)
"")))
(gnus-fetch-headers
(and (car result) (delete 0 (mapcar #'string-to-number
(cdr (assoc "SEARCH" (cdr result))))))
- nil t))))
+ nil t)))))
(defun nnimap-possibly-change-group (group server)
(let ((open-result t))