(nnmail-split-it): Match whole word for getting group name with `\N'.
authoryamaoka <yamaoka>
Fri, 20 Aug 1999 00:25:34 +0000 (00:25 +0000)
committeryamaoka <yamaoka>
Fri, 20 Aug 1999 00:25:34 +0000 (00:25 +0000)
;; referred to Nana-gnus 6.13.5.

lisp/nnmail.el

index e742727..1bc980d 100644 (file)
@@ -1159,7 +1159,7 @@ See the documentation for the variable `nnmail-split-fancy' for documentation."
                    (setq value (cdr (assq value nnmail-split-abbrev-alist))))
                ;; Someone might want to do a \N sub on this match, so get the
                ;; correct match positions.
-               (re-search-backward value start-of-value))
+               (re-search-backward (concat "\\<" value "\\>") start-of-value))
              (dolist (sp (nnmail-split-it (car split-rest)))
                (unless (memq sp split-result)
                  (push sp split-result))))))