Mercurial > emacs
comparison 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 |
comparison
equal
deleted
inserted
replaced
111030:fdb969225593 | 111031:4bed37ddc92b |
---|---|
712 t) | 712 t) |
713 | 713 |
714 (deffoo nnimap-request-move-article (article group server accept-form | 714 (deffoo nnimap-request-move-article (article group server accept-form |
715 &optional last internal-move-group) | 715 &optional last internal-move-group) |
716 (with-temp-buffer | 716 (with-temp-buffer |
717 (mm-disable-multibyte) | |
717 (when (nnimap-request-article article group server (current-buffer)) | 718 (when (nnimap-request-article article group server (current-buffer)) |
718 ;; If the move is internal (on the same server), just do it the easy | 719 ;; If the move is internal (on the same server), just do it the easy |
719 ;; way. | 720 ;; way. |
720 (let ((message-id (message-field-value "message-id"))) | 721 (let ((message-id (message-field-value "message-id"))) |
721 (if internal-move-group | 722 (if internal-move-group |
767 (defun nnimap-process-expiry-targets (articles group server) | 768 (defun nnimap-process-expiry-targets (articles group server) |
768 (let ((deleted-articles nil)) | 769 (let ((deleted-articles nil)) |
769 (dolist (article articles) | 770 (dolist (article articles) |
770 (let ((target nnmail-expiry-target)) | 771 (let ((target nnmail-expiry-target)) |
771 (with-temp-buffer | 772 (with-temp-buffer |
773 (mm-disable-multibyte) | |
772 (when (nnimap-request-article article group server (current-buffer)) | 774 (when (nnimap-request-article article group server (current-buffer)) |
773 (nnheader-message 7 "Expiring article %s:%d" group article) | 775 (nnheader-message 7 "Expiring article %s:%d" group article) |
774 (when (functionp target) | 776 (when (functionp target) |
775 (setq target (funcall target group))) | 777 (setq target (funcall target group))) |
776 (when (and target | 778 (when (and target |
1472 ;; "* OK [UIDVALIDITY 1164213559] UIDs valid", typically, so parse | 1474 ;; "* OK [UIDVALIDITY 1164213559] UIDs valid", typically, so parse |
1473 ;; the lines into a list of strings and lists of string. | 1475 ;; the lines into a list of strings and lists of string. |
1474 (defun nnimap-parse-line (line) | 1476 (defun nnimap-parse-line (line) |
1475 (let (char result) | 1477 (let (char result) |
1476 (with-temp-buffer | 1478 (with-temp-buffer |
1479 (mm-disable-multibyte) | |
1477 (insert line) | 1480 (insert line) |
1478 (goto-char (point-min)) | 1481 (goto-char (point-min)) |
1479 (while (not (eobp)) | 1482 (while (not (eobp)) |
1480 (if (eql (setq char (following-char)) ? ) | 1483 (if (eql (setq char (following-char)) ? ) |
1481 (forward-char 1) | 1484 (forward-char 1) |