Gnus: nnimap doesn't work with MS Exchange 2007

Bug #310998 reported by Joshua Judson Rosen
4
Affects Status Importance Assigned to Milestone
emacs22 (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: emacs22-common

Gnus' imap modules fail to work with Microsoft Exchange 2007 due to a peculiarity of Exchange: Exchange does not accept "*" as a sequence-number meaning `the largest number in use' (as per RFC 2060, page 72), /unless/ it's used in a range, e.g.: Exchange says that "fetch * UID" is invalid, but "fetch *:* UID" is OK.

Since "*:*" is semantically equivalent to "*" (`a set ranging from the highest number to itself' vs. `a set containing only the highest number'), I suggest simply changing the relevant code in Gnus (imap.el and nnimap.el) to be `MS-compatible'.

I'm pretty sure that this is really Exchange's fault (RFC 2060 doesn't look ambiguous to me), but it's probably easier for us to just work around it than to get the Exchange deployments fixed.

I've tested the attached changes with my installation, and found them to work:

Revision history for this message
Joshua Judson Rosen (rozzin) wrote :
Revision history for this message
Michael Olson (mwolson) wrote : Re: [Bug 310998] [NEW] Gnus: nnimap doesn't work with MS Exchange 2007

I recall seeing a thread on the Gnus mailing list recently involving
Exchange (judging by subject line only). Do you know off-hand whether
it was about this issue, and if so, whether a fix was checked in?

--
| Michael Olson | FSF Associate Member #652 |
| http://mwolson.org/ | Hobbies: Lisp, HCoop |
| Projects: Emacs, Muse, ERC, EMMS, ErBot, DVC, Planner |
`-------------------------------------------------------'

Revision history for this message
Joshua Judson Rosen (rozzin) wrote : Re: [Bug 310998] Gnus: nnimap doesn't work with MS Exchange 2007

Michael Olson <email address hidden> writes:
>
> I recall seeing a thread on the Gnus mailing list recently involving
> Exchange (judging by subject line only). Do you know off-hand whether
> it was about this issue, and if so, whether a fix was checked in?

I haven't been following the Gnus list recently, but here's a relevant
thread (via gmane) from September 2008:

    "gnus IMAP vs. Exchange Server 2007"
    http://article.gmane.org/gmane.emacs.gnus.general/67437

According to that message, a variant of this fix (with an
"imap-enable-exchange-bug-workaround" setting) has be committed to
both the Gnus and Emacs development trees.

--
Don't be afraid to ask (Lf.((Lx.xx) (Lr.f(rr)))).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.