diff lisp/gnus/gnus-sum.el @ 66330:315411603f68

Reverted last change for a better fix: * gnus-sum.el (gnus-ignored-from-addresses): Handle case where user-mail-name is an empty string.
author Chong Yidong <cyd@stupidchicken.com>
date Sun, 23 Oct 2005 16:29:35 +0000
parents eaa19e98cd04
children 6f5da26b0df1
line wrap: on
line diff
--- a/lisp/gnus/gnus-sum.el	Sun Oct 23 16:25:36 2005 +0000
+++ b/lisp/gnus/gnus-sum.el	Sun Oct 23 16:29:35 2005 +0000
@@ -1000,7 +1000,9 @@
   :type '(repeat symbol))
 
 (defcustom gnus-ignored-from-addresses
-  (and user-mail-address (regexp-quote user-mail-address))
+  (and user-mail-address  
+       (not (string= user-mail-address ""))
+       (regexp-quote user-mail-address))
   "*Regexp of From headers that may be suppressed in favor of To headers."
   :version "21.1"
   :group 'gnus-summary
@@ -3304,7 +3306,6 @@
 			 gnus-newsgroup-ignored-charsets)))
     (or
      (and gnus-ignored-from-addresses
-	  (not (string= gnus-ignored-from-addresses ""))
 	  (string-match gnus-ignored-from-addresses gnus-tmp-from)
 	  (let ((extra-headers (mail-header-extra header))
 		to