From: Alex Schroeder Date: Wed, 1 Feb 2006 19:26:54 +0000 (+0000) Subject: (rmail-convert-mbox-format): Handle mails without subject. X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=780de852ae861244594b4eb2831fb361f5bf6c1c;p=emacs.git (rmail-convert-mbox-format): Handle mails without subject. --- diff --git a/lisp/mail/ChangeLog b/lisp/mail/ChangeLog index 1ee465199f8..78f98844f6c 100644 --- a/lisp/mail/ChangeLog +++ b/lisp/mail/ChangeLog @@ -1,3 +1,7 @@ +2006-02-01 Alex Schroeder + + * rmail.el (rmail-convert-mbox-format): Handle mails without subject. + 2006-02-01 Henrik Enberg * rmail.el (rmail-first-unseen-message): Make sure to return the diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index 3c2c29ec985..1ac64f217cd 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el @@ -1995,8 +1995,9 @@ non-nil then do not show any progress messages." ;; Convert encoded-words in from and subject (dolist (header '("From" "Subject")) (let ((value (rmail-header-get-header header))) - (rmail-header-add-header - header (mail-decode-encoded-word-string value)))) + (when value + (rmail-header-add-header + header (mail-decode-encoded-word-string value))))) ;; Convert quoted printable transfer encoding because it ;; is easy to do. (let ((encoding (rmail-header-get-header