From: nathanw@MIT.EDU (Nathan J. Williams)
To: ding@gnus.org
Cc: simon@josefsson.org
Subject: Re: problem in connecting to Exchange 2007 - possible solution?
Date: Mon, 03 Dec 2007 12:04:47 -0500 [thread overview]
Message-ID: <mtur6i34sls.fsf@contents-vnder-pressvre.mit.edu> (raw)
In-Reply-To: <mtufxyoy56s.fsf@contents-vnder-pressvre.mit.edu> (Nathan J. Williams's message of "Thu\, 29 Nov 2007 18\:58\:51 -0500")
nathanw@MIT.EDU (Nathan J. Williams) writes:
> Hi. My company's mail server was just moved to MS Exchange 2007, and I
> quickly ran into the IMAP problem described here:
>
> http://article.gmane.org/gmane.emacs.gnus.general/64775
>
> which is that "FETCH 1,* UID" isn't supported by this server, and it
> returns with "BAD The specified message set is invalid"
>
> Some experimenting later, I found that "FETCH 1 UID" and "FETCH *:*
> UID" work individually to get the lowest and highest number; "FETCH
> 1,*:* UID" seems to do the same job as "FETCH 1,* UID". A quick patch
> followed:
I found two other places where a "FETCH *" needed to be replaced by
"FETCH *:*" to get things working properly. Patch follows.
- Nathan
Index: imap.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/imap.el,v
retrieving revision 7.34
diff -u -r7.34 imap.el
--- imap.el 25 Oct 2007 08:17:54 -0000 7.34
+++ imap.el 3 Dec 2007 16:59:24 -0000
@@ -1735,7 +1736,7 @@
(imap-message-data (make-vector 2 0)))
(when (imap-mailbox-examine-1 mailbox)
(prog1
- (and (imap-fetch "*" "UID")
+ (and (imap-fetch "*:*" "UID")
(list (imap-mailbox-get-1 'uidvalidity mailbox)
(apply 'max (imap-message-map
(lambda (uid prop) uid) 'UID))))
@@ -1779,7 +1780,7 @@
(imap-message-data (make-vector 2 0)))
(when (imap-mailbox-examine-1 mailbox)
(prog1
- (and (imap-fetch "*" "UID")
+ (and (imap-fetch "*:*" "UID")
(list (imap-mailbox-get-1 'uidvalidity mailbox)
(apply 'max (imap-message-map
(lambda (uid prop) uid) 'UID))))
Index: nnimap.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/nnimap.el,v
retrieving revision 7.39
diff -u -r7.39 nnimap.el
--- nnimap.el 25 Oct 2007 08:17:54 -0000 7.39
+++ nnimap.el 3 Dec 2007 16:59:25 -0000
@@ -555,7 +555,7 @@
(imap-mailbox-select group examine))
(let (minuid maxuid)
(when (> (imap-mailbox-get 'exists) 0)
- (imap-fetch "1,*" "UID" nil 'nouidfetch)
+ (imap-fetch "1,*:*" "UID" nil 'nouidfetch)
(imap-message-map (lambda (uid Uid)
(setq minuid (if minuid (min minuid uid) uid)
maxuid (if maxuid (max maxuid uid) uid)))
next prev parent reply other threads:[~2007-12-03 17:04 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-29 23:58 Nathan J. Williams
2007-12-03 17:04 ` Nathan J. Williams [this message]
2007-12-03 18:01 ` Simon Josefsson
2007-12-03 18:14 ` Nathan J. Williams
2007-12-04 13:46 ` Simon Josefsson
2007-12-04 15:20 ` Nathan J. Williams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=mtur6i34sls.fsf@contents-vnder-pressvre.mit.edu \
--to=nathanw@mit.edu \
--cc=ding@gnus.org \
--cc=simon@josefsson.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).