Protect against (NIL ...) bodystructures (bug#9314).
authorLars Magne Ingebrigtsen <larsi@tmp-office.(none)>
Fri, 19 Aug 2011 14:36:33 +0000 (16:36 +0200)
committerLars Magne Ingebrigtsen <larsi@tmp-office.(none)>
Fri, 19 Aug 2011 14:37:54 +0000 (16:37 +0200)
lisp/nnimap.el

index c940e06..2dbc465 100644 (file)
@@ -216,9 +216,10 @@ textual parts.")
          (let ((structure (ignore-errors
                             (read (current-buffer)))))
            (while (and (consp structure)
-                       (not (stringp (car structure))))
+                       (not (atom (car structure))))
              (setq structure (car structure)))
            (setq lines (if (and
+                            (stringp (car structure))
                             (equal (upcase (nth 0 structure)) "MESSAGE")
                             (equal (upcase (nth 1 structure)) "RFC822"))
                            (nth 9 structure)