From cb9bcf06b23ad5053abfc92b9c6b85d11fff02c9 Mon Sep 17 00:00:00 2001 From: Alex Schroeder Date: Tue, 11 Apr 2006 13:28:13 +0000 Subject: [PATCH] (rmail-process-new-messages): Handle missing From line (usually spam). --- lisp/mail/rmail.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index 39465bbc485..7c3a560c306 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el @@ -1922,8 +1922,8 @@ non-nil then do not show any progress messages." 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))))) -- 2.39.5