changeset 88263:069a5d0feb9a

(rmail-process-new-messages): Don't lose on missing subject field.
author Henrik Enberg <henrik.enberg@telia.com>
date Sat, 21 Jan 2006 16:18:59 +0000
parents beb8ae68f37a
children 127c0cb66742
files lisp/mail/rmail.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/mail/rmail.el	Sat Jan 21 15:31:05 2006 +0000
+++ b/lisp/mail/rmail.el	Sat Jan 21 16:18:59 2006 +0000
@@ -1987,7 +1987,8 @@
 				     (cadr (mail-extract-address-components
 					    (rmail-header-get-header "from")))
 				     (mail-decode-encoded-word-string
-				      (rmail-header-get-header "subject"))))
+				      (or (rmail-header-get-header "subject")
+					  "No Subject Given"))))
 			 message-descriptor-list)))))
     ;; Add the new message data lists to the Rmail message descriptor
     ;; vector.