changeset 88334:dc19258c4b18

(rmail-process-new-messages): Handle missing From line (usually spam).
author Alex Schroeder <alex@gnu.org>
date Tue, 11 Apr 2006 13:28:13 +0000
parents 46c7a7f6d451
children 7f7748896b97
files lisp/mail/rmail.el
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/mail/rmail.el	Thu Mar 09 22:53:43 2006 +0000
+++ b/lisp/mail/rmail.el	Tue Apr 11 13:28:13 2006 +0000
@@ -1922,8 +1922,8 @@
 				       keywords
 				       date
 				       (count-lines start end)
-				       (cadr (mail-extract-address-components
-					      (rmail-header-get-header "from")))
+				       (cadr (mail-extract-address-components; does not like nil
+					      (or (rmail-header-get-header "from") "")))
 				       (or (rmail-header-get-header "subject")
 					   "none")))
 			   message-descriptor-list)))))