From: Alex Schroeder Date: Tue, 11 Apr 2006 13:28:13 +0000 (+0000) Subject: (rmail-process-new-messages): Handle missing From X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=cb9bcf06b23ad5053abfc92b9c6b85d11fff02c9;p=emacs.git (rmail-process-new-messages): Handle missing From line (usually spam). --- 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)))))