nnimap.el (nnimap-request-move-article, nnimap-parse-line, nnimap-process-expiry...
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 19 Oct 2010 08:00:53 +0000 (08:00 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Tue, 19 Oct 2010 08:00:53 +0000 (08:00 +0000)
lisp/ChangeLog
lisp/nnimap.el

index 580ad17..0015a27 100644 (file)
        text width.
        (shr-insert-table-ruler): Make sure indentation is done at bol.
 
+2010-10-19  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * nnimap.el (nnimap-request-move-article, nnimap-parse-line)
+       (nnimap-process-expiry-targets): Use unibyte for buffers that hold
+       undecoded network data.
+
 2010-10-18  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
        * gnus-agent.el (gnus-agent-toggle-plugged): Use the right minor mode
index 63f3a2d..21c0222 100644 (file)
@@ -714,6 +714,7 @@ textual parts.")
 (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 @@ textual parts.")
     (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 @@ textual parts.")
 (defun nnimap-parse-line (line)
   (let (char result)
     (with-temp-buffer
+      (mm-disable-multibyte)
       (insert line)
       (goto-char (point-min))
       (while (not (eobp))