aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2004-03-22 15:08:55 +0000
committerStefan Monnier2004-03-22 15:08:55 +0000
commit28d38c0b907983275ca409a4bf27bc79804bcd2b (patch)
tree10a7d868019c86f22263a1a76527653f53716a67
parent4a61faec0b340c349bedf26bc9a826e821fdf6a4 (diff)
downloademacs-28d38c0b907983275ca409a4bf27bc79804bcd2b.tar.gz
emacs-28d38c0b907983275ca409a4bf27bc79804bcd2b.zip
(imap-parse-address-list, imap-parse-body-ext): Disable wrong use of `assert'.
-rw-r--r--lisp/gnus/imap.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/gnus/imap.el b/lisp/gnus/imap.el
index 0fe3ed88501..45c7ba4bbbf 100644
--- a/lisp/gnus/imap.el
+++ b/lisp/gnus/imap.el
@@ -1,5 +1,5 @@
1;;; imap.el --- imap library 1;;; imap.el --- imap library
2;; Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 2;; Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004
3;; Free Software Foundation, Inc. 3;; Free Software Foundation, Inc.
4 4
5;; Author: Simon Josefsson <jas@pdc.kth.se> 5;; Author: Simon Josefsson <jas@pdc.kth.se>
@@ -1803,7 +1803,8 @@ Return nil if no complete line has arrived."
1803 (when (eq (char-after) ?\)) 1803 (when (eq (char-after) ?\))
1804 (imap-forward) 1804 (imap-forward)
1805 (nreverse addresses))) 1805 (nreverse addresses)))
1806 (assert (imap-parse-nil)))) 1806 ;; (assert (imap-parse-nil)) ; With assert, the code might not be eval'd.
1807 (imap-parse-nil)))
1807 1808
1808;; mailbox = "INBOX" / astring 1809;; mailbox = "INBOX" / astring
1809;; ; INBOX is case-insensitive. All case variants of 1810;; ; INBOX is case-insensitive. All case variants of
@@ -2343,7 +2344,8 @@ Return nil if no complete line has arrived."
2343 (imap-forward) 2344 (imap-forward)
2344 (push (imap-parse-string-list) dsp) 2345 (push (imap-parse-string-list) dsp)
2345 (imap-forward)) 2346 (imap-forward))
2346 (assert (imap-parse-nil))) 2347 ;; (assert (imap-parse-nil)) ; Code in assert might not be eval'd.
2348 (imap-parse-nil))
2347 (push (nreverse dsp) ext)) 2349 (push (nreverse dsp) ext))
2348 (when (eq (char-after) ?\ );; body-fld-lang 2350 (when (eq (char-after) ?\ );; body-fld-lang
2349 (imap-forward) 2351 (imap-forward)