comparison lisp/gnus/nnimap.el @ 111401:733acab855e4

Merge changes made in Gnus trunk. mm-decode.el (mm-save-part): Put the entire path in the `M-n' slot. nnimap.el (nnimap-find-article-by-message-id): Don't EXAMINE a group if it's already selected. gnus.texi (Customizing the IMAP Connection): Document `nnimap-expunge' and remove `nnimap-expunge-inbox' from example. gnus.texi (Customizing the IMAP Connection): Remove nnir mention, since that works by default. gnus-sum.el (gnus-summary-show-article): Take `t' as the arg to mean "raw". gnus-html.el (gnus-html-browse-url): Implement mailto: URLs. shr.el (shr-browse-url): Implement mailto: URLs. nnir.el, gnus-sum.el: Improve thread-referral. message.el (message-send-mail): Use the value of message-courtesy-message from the message buffer.
author Katsumi Yamaoka <yamaoka@jpl.org>
date Thu, 04 Nov 2010 22:18:09 +0000
parents 0c7c9736f766
children b75e6634a171
comparison
equal deleted inserted replaced
111400:17d49dad0c8b 111401:733acab855e4
729 (with-current-buffer (nnimap-buffer) 729 (with-current-buffer (nnimap-buffer)
730 ;; Make sure we don't have this group open read/write by asking 730 ;; Make sure we don't have this group open read/write by asking
731 ;; to examine a mailbox that doesn't exist. This seems to be 731 ;; to examine a mailbox that doesn't exist. This seems to be
732 ;; the only way that allows us to reliably go back to unselected 732 ;; the only way that allows us to reliably go back to unselected
733 ;; state on Courier. 733 ;; state on Courier.
734 (nnimap-command "EXAMINE DOES.NOT.EXIST")
735 (setf (nnimap-group nnimap-object) nil)
736 (car (nnimap-command "RENAME %S %S" 734 (car (nnimap-command "RENAME %S %S"
737 (utf7-encode group t) (utf7-encode new-name t)))))) 735 (utf7-encode group t) (utf7-encode new-name t))))))
738 736
739 (deffoo nnimap-request-expunge-group (group &optional server) 737 (deffoo nnimap-request-expunge-group (group &optional server)
740 (when (nnimap-possibly-change-group group server) 738 (when (nnimap-possibly-change-group group server)
861 859
862 860
863 (defun nnimap-find-article-by-message-id (group message-id) 861 (defun nnimap-find-article-by-message-id (group message-id)
864 (with-current-buffer (nnimap-buffer) 862 (with-current-buffer (nnimap-buffer)
865 (erase-buffer) 863 (erase-buffer)
866 (setf (nnimap-group nnimap-object) nil) 864 (unless (equal group (nnimap-group nnimap-object))
867 (nnimap-send-command "EXAMINE %S" (utf7-encode group t)) 865 (setf (nnimap-group nnimap-object) nil)
866 (nnimap-send-command "EXAMINE %S" (utf7-encode group t)))
868 (let ((sequence 867 (let ((sequence
869 (nnimap-send-command "UID SEARCH HEADER Message-Id %S" message-id)) 868 (nnimap-send-command "UID SEARCH HEADER Message-Id %S" message-id))
870 article result) 869 article result)
871 (setq result (nnimap-wait-for-response sequence)) 870 (setq result (nnimap-wait-for-response sequence))
872 (when (and result 871 (when (and result