]> git.eshelyaron.com Git - emacs.git/commitdiff
gnus-sum.el: gnus-sum: fix `gnus-summary-from-or-to-or-newsgroups' address comparison
authorJulien Danjou <julien@danjou.info>
Mon, 14 Jan 2013 22:09:16 +0000 (22:09 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 14 Jan 2013 22:09:16 +0000 (22:09 +0000)
lisp/gnus/ChangeLog
lisp/gnus/gnus-sum.el

index 1524f000450b1b5147430c705e4e9799d504a2fb..2b09a1f456cdb31b27ca09fe5ee7843a4fa253fe 100644 (file)
@@ -1,3 +1,8 @@
+2013-01-14  Julien Danjou  <julien@danjou.info>
+
+       * gnus-sum.el (gnus-summary-from-or-to-or-newsgroups): Compare
+       addresses against addresses, not against the full From field.
+
 2013-01-13  Richard Stallman  <rms@gnu.org>
 
        * message.el (message-forward-make-body-mime): New args BEG, END
 2013-01-11  Aaron S. Hawley  <Aaron.Hawley@vtinfo.com>
 
        * gnus-start.el (gnus-check-new-newsgroups): Fix ambiguous doc string
-        cross-reference(s).
+       cross-reference(s).
 
        * gnus-sum.el (gnus-summary-newsgroup-prefix): Fix ambiguous doc string
-        cross-reference(s).
+       cross-reference(s).
 
 2013-01-11  Dmitry Antipov  <dmantipov@yandex.ru>
 
index 14597f031e1ca0ae9902efb3a10d484242090827..ea68a6a2fa54535ec11d5f4ca4ad561d2cc42640 100644 (file)
@@ -3651,17 +3651,18 @@ buffer that was in action when the last article was fetched."
   (or (car (funcall gnus-extract-address-components from))
       from))
 
-(defun gnus-summary-from-or-to-or-newsgroups (header gnus-tmp-from)
+(defun gnus-summary-from-or-to-or-newsgroups (header from)
   (let ((mail-parse-charset gnus-newsgroup-charset)
-       (ignored-from-addresses (gnus-ignored-from-addresses))
-       ; Is it really necessary to do this next part for each summary line?
-       ; Luckily, doesn't seem to slow things down much.
-       (mail-parse-ignored-charsets
-        (with-current-buffer gnus-summary-buffer
-          gnus-newsgroup-ignored-charsets)))
+        (ignored-from-addresses (gnus-ignored-from-addresses))
+        ;; Is it really necessary to do this next part for each summary line?
+        ;; Luckily, doesn't seem to slow things down much.
+        (mail-parse-ignored-charsets
+         (with-current-buffer gnus-summary-buffer
+           gnus-newsgroup-ignored-charsets))
+        (address (cadr (gnus-extract-address-components from))))
     (or
      (and ignored-from-addresses
-         (string-match ignored-from-addresses gnus-tmp-from)
+         (string-match ignored-from-addresses address)
          (let ((extra-headers (mail-header-extra header))
                to
                newsgroups)
@@ -3680,9 +3681,7 @@ buffer that was in action when the last article was fetched."
                                 gnus-newsgroup-name)) 'nntp)
                      (gnus-group-real-name gnus-newsgroup-name))))
              (concat gnus-summary-newsgroup-prefix newsgroups)))))
-     (gnus-string-mark-left-to-right
-      (inline
-       (gnus-summary-extract-address-component gnus-tmp-from))))))
+     (gnus-string-mark-left-to-right (gnus-summary-extract-address-component from)))))
 
 (defun gnus-summary-insert-line (gnus-tmp-header
                                 gnus-tmp-level gnus-tmp-current