Gnus development mailing list
 help / color / mirror / Atom feed
* problem in connecting to Exchange 2007 - possible solution?
@ 2007-11-29 23:58 Nathan J. Williams
  2007-12-03 17:04 ` Nathan J. Williams
  0 siblings, 1 reply; 6+ messages in thread
From: Nathan J. Williams @ 2007-11-29 23:58 UTC (permalink / raw)
  To: ding; +Cc: simon, yif


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:

--- nnimap.el.~7.39.~	2007-10-25 04:17:54.000000000 -0400
+++ nnimap.el	2007-11-29 18:55:53.546875000 -0500
@@ -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)))


This was sufficent to make things work again for me. Any thoughts as
to whether this is more or less proper than the original, IMAP-wise?
It's certainly good to be able to work with a distressingly common
corporate server.

	- Nathan



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-12-04 15:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-29 23:58 problem in connecting to Exchange 2007 - possible solution? Nathan J. Williams
2007-12-03 17:04 ` Nathan J. Williams
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

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).