aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/gnus/nnimap.el2
-rw-r--r--lisp/net/imap.el2
2 files changed, 4 insertions, 0 deletions
diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el
index a38d35444a3..b11a0b083d3 100644
--- a/lisp/gnus/nnimap.el
+++ b/lisp/gnus/nnimap.el
@@ -620,6 +620,7 @@ If EXAMINE is non-nil the group is selected read-only."
620 ;; to make it more clear. 620 ;; to make it more clear.
621 (mm-with-unibyte-buffer 621 (mm-with-unibyte-buffer
622 (buffer-disable-undo) 622 (buffer-disable-undo)
623 ;; headers can be nil if article is write-only
623 (when headers (insert headers)) 624 (when headers (insert headers))
624 (let ((head (nnheader-parse-naked-head uid))) 625 (let ((head (nnheader-parse-naked-head uid)))
625 (mail-header-set-number head uid) 626 (mail-header-set-number head uid)
@@ -950,6 +951,7 @@ function is generally only called when Gnus is shutting down."
950 (erase-buffer) 951 (erase-buffer)
951 (let ((data (imap-fetch article part prop nil 952 (let ((data (imap-fetch article part prop nil
952 nnimap-server-buffer))) 953 nnimap-server-buffer)))
954 ;; data can be nil if article is write-only
953 (when data 955 (when data
954 (insert (nnimap-demule (if detail 956 (insert (nnimap-demule (if detail
955 (nth 2 (car data)) 957 (nth 2 (car data))
diff --git a/lisp/net/imap.el b/lisp/net/imap.el
index 85afffc100b..8cb248aa513 100644
--- a/lisp/net/imap.el
+++ b/lisp/net/imap.el
@@ -2493,6 +2493,8 @@ Return nil if no complete line has arrived."
2493 (when (eq (char-after) ?\() 2493 (when (eq (char-after) ?\()
2494 (let (uid flags envelope internaldate rfc822 rfc822header rfc822text 2494 (let (uid flags envelope internaldate rfc822 rfc822header rfc822text
2495 rfc822size body bodydetail bodystructure flags-empty) 2495 rfc822size body bodydetail bodystructure flags-empty)
2496 ;; Courier can insert spurious blank characters which will
2497 ;; confuse `read', so skip past them.
2496 (while (let ((moved (skip-chars-forward " \t"))) 2498 (while (let ((moved (skip-chars-forward " \t")))
2497 (prog1 (not (eq (char-after) ?\))) 2499 (prog1 (not (eq (char-after) ?\)))
2498 (unless (= moved 0) (backward-char)))) 2500 (unless (= moved 0) (backward-char))))