]> git.eshelyaron.com Git - emacs.git/commitdiff
(rmail-message-subject-p): Don't call
authorGerd Moellmann <gerd@gnu.org>
Thu, 31 May 2001 08:08:41 +0000 (08:08 +0000)
committerGerd Moellmann <gerd@gnu.org>
Thu, 31 May 2001 08:08:41 +0000 (08:08 +0000)
`rmail-summary-line-decoder' if the message does not have Subject:
field.

lisp/mail/rmailsum.el

index b9578c8ec659109295feb850cda2efc86206dece..3964274edc31e49fdfae49e83f5745c2bef7fd27 100644 (file)
@@ -138,8 +138,10 @@ SUBJECT is a string of regexps separated by commas."
      (progn (search-forward (if whole-message "\^_" "\n\n")) (point)))
     (goto-char (point-min))
     (if whole-message (re-search-forward subject nil t)
-      (string-match subject (or (funcall rmail-summary-line-decoder
-                                        (mail-fetch-field "Subject")) "")) )))
+      (string-match subject (let ((subj (mail-fetch-field "Subject")))
+                             (if subj
+                                 (funcall rmail-summary-line-decoder subj)
+                               ""))))))
 
 ;;;###autoload
 (defun rmail-summary-by-senders (senders)