diff lisp/gnus/nnimap.el @ 111031:4bed37ddc92b

* lisp/gnus/nnimap.el (nnimap-request-move-article, nnimap-parse-line) (nnimap-process-expiry-targets): Use unibyte for buffers that hold undecoded network data.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Mon, 18 Oct 2010 20:13:27 -0400
parents fc6dc700cc9f
children 106c6aef1933
line wrap: on
line diff
--- a/lisp/gnus/nnimap.el	Mon Oct 18 23:41:03 2010 +0000
+++ b/lisp/gnus/nnimap.el	Mon Oct 18 20:13:27 2010 -0400
@@ -714,6 +714,7 @@
 (deffoo nnimap-request-move-article (article group server accept-form
 					     &optional last internal-move-group)
   (with-temp-buffer
+    (mm-disable-multibyte)
     (when (nnimap-request-article article group server (current-buffer))
       ;; If the move is internal (on the same server), just do it the easy
       ;; way.
@@ -769,6 +770,7 @@
     (dolist (article articles)
       (let ((target nnmail-expiry-target))
 	(with-temp-buffer
+          (mm-disable-multibyte)
 	  (when (nnimap-request-article article group server (current-buffer))
 	    (nnheader-message 7 "Expiring article %s:%d" group article)
 	    (when (functionp target)
@@ -1474,6 +1476,7 @@
 (defun nnimap-parse-line (line)
   (let (char result)
     (with-temp-buffer
+      (mm-disable-multibyte)
       (insert line)
       (goto-char (point-min))
       (while (not (eobp))