(gnus-dup-unsuppress-article): don't assume the mail
authorTeodor Zlatanov <tzz@lifelogs.com>
Fri, 14 May 2004 19:48:16 +0000 (19:48 +0000)
committerTeodor Zlatanov <tzz@lifelogs.com>
Fri, 14 May 2004 19:48:16 +0000 (19:48 +0000)
header is not nil (tiny change).  From Nelson Ferreira
<nelson.ferreira@verizon.net>.

lisp/ChangeLog
lisp/gnus-dup.el

index a6f9b6a..ec3cee1 100644 (file)
@@ -1,5 +1,9 @@
 2004-05-14  Teodor Zlatanov  <tzz@lifelogs.com>
 
+       * gnus-dup.el (gnus-dup-unsuppress-article): don't assume the mail
+       header is not nil (tiny change).  From Nelson Ferreira
+       <nelson.ferreira@verizon.net>.
+
        * spam.el (spam-summary-prepare-exit): only produce "marking spam
        as expired without moving it" message when there are spam
        messages left
index a2b5544..a385d0a 100644 (file)
@@ -154,7 +154,8 @@ seen in the same session."
 
 (defun gnus-dup-unsuppress-article (article)
   "Stop suppression of ARTICLE."
-  (let ((id (mail-header-id (gnus-data-header (gnus-data-find article)))))
+  (let* ((header (gnus-data-header (gnus-data-find article)))
+        (id     (when header (mail-header-id header))))
     (when id
       (setq gnus-dup-list-dirty t)
       (setq gnus-dup-list (delete id gnus-dup-list))