Gnus development mailing list
 help / color / mirror / Atom feed
From: nathanw@MIT.EDU (Nathan J. Williams)
To: ding@gnus.org
Cc: simon@josefsson.org, yif@iskoot.com
Subject: problem in connecting to Exchange 2007 - possible solution?
Date: Thu, 29 Nov 2007 18:58:51 -0500	[thread overview]
Message-ID: <mtufxyoy56s.fsf@contents-vnder-pressvre.mit.edu> (raw)


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



             reply	other threads:[~2007-11-29 23:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-29 23:58 Nathan J. Williams [this message]
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

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=mtufxyoy56s.fsf@contents-vnder-pressvre.mit.edu \
    --to=nathanw@mit.edu \
    --cc=ding@gnus.org \
    --cc=simon@josefsson.org \
    --cc=yif@iskoot.com \
    /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).