Gnus: nnimap doesn't work with MS Exchange 2007
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:
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?
-- mwolson. org/ | Hobbies: Lisp, HCoop | ------- ------- ------- ------- ------- ------- ------- '
| Michael Olson | FSF Associate Member #652 |
| http://
| Projects: Emacs, Muse, ERC, EMMS, ErBot, DVC, Planner |
`------