X-Git-Url: http://cgit.sxemacs.org/?a=blobdiff_plain;f=lisp%2Fgnus-logic.el;h=60d7b31713b192f821060a8b463b6e771c4ea29f;hb=1dd17bf9b604184bffb73cceb9e3892b323efd52;hp=a440b7799303ddf46674c35c20f5bba51388b50c;hpb=b0e097a051ce5e58042ab6e1b5fa6519b1ed87c4;p=gnus diff --git a/lisp/gnus-logic.el b/lisp/gnus-logic.el index a440b7799..60d7b3171 100644 --- a/lisp/gnus-logic.el +++ b/lisp/gnus-logic.el @@ -181,17 +181,18 @@ (with-current-buffer nntp-server-buffer (let* ((request-func (cond ((string= "head" header) 'gnus-request-head) - ;; We need to peek at the headers to detect the - ;; content encoding ((string= "body" header) - 'gnus-request-article) + 'gnus-request-body) (t 'gnus-request-article))) ofunc article handles) ;; Not all backends support partial fetching. In that case, we ;; just fetch the entire article. - (unless (gnus-check-backend-function - (intern (concat "request-" header)) - gnus-newsgroup-name) + ;; When scoring by body, we need to peek at the headers to detect the + ;; content encoding + (unless (or (gnus-check-backend-function + (intern (concat "request-" header)) + gnus-newsgroup-name) + (string= "body" header)) (setq ofunc request-func) (setq request-func 'gnus-request-article)) (setq article (mail-header-number gnus-advanced-headers))