aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/net
diff options
context:
space:
mode:
authorMiles Bader2008-04-07 13:08:33 +0000
committerMiles Bader2008-04-07 13:08:33 +0000
commit59429511341a4d2dbec1f8b890f628ad928bfd5c (patch)
tree245e70521d05baf90de36fd4c14f57815bc5e342 /lisp/net
parentfbf57abbfe59545a0b0bb9e6c7288a375f68de94 (diff)
downloademacs-59429511341a4d2dbec1f8b890f628ad928bfd5c.tar.gz
emacs-59429511341a4d2dbec1f8b890f628ad928bfd5c.zip
Merge from gnus--devo--0
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1110
Diffstat (limited to 'lisp/net')
-rw-r--r--lisp/net/imap.el12
1 files changed, 10 insertions, 2 deletions
diff --git a/lisp/net/imap.el b/lisp/net/imap.el
index 399d5ec8237..9e3d0a966a9 100644
--- a/lisp/net/imap.el
+++ b/lisp/net/imap.el
@@ -440,6 +440,12 @@ The actual value is really the text on the continuation line.")
440The function should take two arguments, the first the IMAP tag and the 440The function should take two arguments, the first the IMAP tag and the
441second the status (OK, NO, BAD etc) of the command.") 441second the status (OK, NO, BAD etc) of the command.")
442 442
443(defvar imap-enable-exchange-bug-workaround nil
444 "Send FETCH UID commands as *:* instead of *.
445Enabling this appears to be required for some servers (e.g.,
446Microsoft Exchange) which otherwise would trigger a response 'BAD
447The specified message set is invalid.'.")
448
443 449
444;; Utility functions: 450;; Utility functions:
445 451
@@ -1774,7 +1780,8 @@ is non-nil return these properties."
1774 (imap-message-data (make-vector 2 0))) 1780 (imap-message-data (make-vector 2 0)))
1775 (when (imap-mailbox-examine-1 mailbox) 1781 (when (imap-mailbox-examine-1 mailbox)
1776 (prog1 1782 (prog1
1777 (and (imap-fetch "*" "UID") 1783 (and (imap-fetch
1784 (if imap-enable-exchange-bug-workaround "*:*" "*") "UID")
1778 (list (imap-mailbox-get-1 'uidvalidity mailbox) 1785 (list (imap-mailbox-get-1 'uidvalidity mailbox)
1779 (apply 'max (imap-message-map 1786 (apply 'max (imap-message-map
1780 (lambda (uid prop) uid) 'UID)))) 1787 (lambda (uid prop) uid) 'UID))))
@@ -1818,7 +1825,8 @@ first element, rest of list contain the saved articles' UIDs."
1818 (imap-message-data (make-vector 2 0))) 1825 (imap-message-data (make-vector 2 0)))
1819 (when (imap-mailbox-examine-1 mailbox) 1826 (when (imap-mailbox-examine-1 mailbox)
1820 (prog1 1827 (prog1
1821 (and (imap-fetch "*" "UID") 1828 (and (imap-fetch
1829 (if imap-enable-exchange-bug-workaround "*:*" "*") "UID")
1822 (list (imap-mailbox-get-1 'uidvalidity mailbox) 1830 (list (imap-mailbox-get-1 'uidvalidity mailbox)
1823 (apply 'max (imap-message-map 1831 (apply 'max (imap-message-map
1824 (lambda (uid prop) uid) 'UID)))) 1832 (lambda (uid prop) uid) 'UID))))