X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=lisp%2Fgnus-registry.el;h=bd405c02af5b94dd141f9ac5111dc362e2661c6c;hb=96cb7d1d60a789fa231db405c351ab90cad5a0d4;hp=712d88c46b35a264888f2d850b1b3d01dbe97b7d;hpb=a341a48b3fbdf4c04d1c5d48a3bf3a41b68cf758;p=elisp%2Fgnus.git- diff --git a/lisp/gnus-registry.el b/lisp/gnus-registry.el index 712d88c..bd405c0 100644 --- a/lisp/gnus-registry.el +++ b/lisp/gnus-registry.el @@ -358,8 +358,12 @@ References or In-Reply-To header and then looks in the registry to see which group that message was put in. This group is returned. See the Info node `(gnus)Fancy Mail Splitting' for more details." - (let ((refstr (or (message-fetch-field "references") - (message-fetch-field "in-reply-to"))) + (let* ((refstr (or (message-fetch-field "references") "")) ; guarantee string + (reply-to (message-fetch-field "in-reply-to")) ; grab reply-to + ;; now, if reply-to is valid, append it to the References + (refstr (if reply-to + (concat refstr " " reply-to) + refstr)) (nnmail-split-fancy-with-parent-ignore-groups (if (listp nnmail-split-fancy-with-parent-ignore-groups) nnmail-split-fancy-with-parent-ignore-groups