From: Simon Josefsson <simon@josefsson.org>
To: nathanw@MIT.EDU (Nathan J. Williams)
Cc: Ted Zlatanov <tzz@lifelogs.com>,
"Michael Harnois" <mdharnois@gmail.com>,
ding@gnus.org
Subject: Re: the Exchange 2007 fix
Date: Wed, 02 Apr 2008 00:41:17 +0200 [thread overview]
Message-ID: <87zlsdurjm.fsf@mocca.josefsson.org> (raw)
In-Reply-To: <mtufxu5b42r.fsf@contents-vnder-pressvre.mit.edu> (Nathan J. Williams's message of "Tue, 01 Apr 2008 18:30:52 -0400")
nathanw@MIT.EDU (Nathan J. Williams) writes:
> Ted Zlatanov <tzz@lifelogs.com> writes:
>
>> On Mon, 24 Mar 2008 14:31:16 -0500 "Michael Harnois" <mdharnois@gmail.com> wrote:
>>
>> MH> It doesn't seem to be the only fix needed, but I think it's the Big Kahuna.
>> MH> mharnois:lisp mdharnois$ diff -urN nnimap.el nnimap.el.orig
>> MH> --- nnimap.el 2008-03-24 14:16:40.000000000 -0500
>> MH> +++ nnimap.el.orig 2008-02-07 11:36:36.000000000 -0600
>> MH> @@ -555,7 +555,7 @@
>> MH> (imap-mailbox-select group examine))
>> MH> (let (minuid maxuid)
>> MH> (when (> (imap-mailbox-get 'exists) 0)
>> MH> - (imap-fetch "1:*" "UID" nil 'nouidfetch)
>> MH> + (imap-fetch "1,*" "UID" nil 'nouidfetch)
>> MH> (imap-message-map (lambda (uid Uid)
>> MH> (setq minuid (if minuid (min minuid uid) uid)
>> MH> maxuid (if maxuid (max maxuid uid) uid)))
>>
>> Since it was a tiny fix I comitted it. It seems to work fine with
>> Exchange 2007 and Courier IMAP.
>
> Please see: http://comments.gmane.org/gmane.emacs.gnus.general/65855
>
> I think we can use "1,*:*" instead of "1:*" to get the min-max effect
> without the effect of pulling down all the UIDs in the group; it's
> what I've been using in my local copy of Gnus since December against
> an Exchange 2007 server.
So maybe this patch would work better? However, it doesn't take care of
the imap.el problems you mentioned in that thread. Perhaps the
bug-workaround variable should be a imap.el variable rather than a
nnimap.el variable? Hm.
--- nnimap.el 01 Apr 2008 16:27:27 +0200 7.45
+++ nnimap.el 02 Apr 2008 00:38:11 +0200
@@ -568,7 +568,7 @@
(imap-mailbox-select group examine))
(let (minuid maxuid)
(when (> (imap-mailbox-get 'exists) 0)
- (imap-fetch (if nnimap-enable-minmax-bug-workaround "1:*" "1,*")
+ (imap-fetch (if nnimap-enable-minmax-bug-workaround "1,*:*" "1,*")
"UID" nil 'nouidfetch)
(imap-message-map (lambda (uid Uid)
(setq minuid (if minuid (min minuid uid) uid)
/Simon
next prev parent reply other threads:[~2008-04-01 22:41 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-24 19:31 Michael Harnois
2008-03-28 14:40 ` Ted Zlatanov
2008-04-01 22:30 ` Nathan J. Williams
2008-04-01 22:41 ` Simon Josefsson [this message]
2008-04-02 2:58 ` Jake Colman
2008-04-02 14:29 ` Simon Josefsson
2008-04-02 14:11 ` Ted Zlatanov
2008-04-02 14:50 ` Simon Josefsson
2008-04-03 13:11 ` Ted Zlatanov
2008-04-03 19:37 ` Reiner Steib
2008-04-03 20:50 ` Jake Colman
2008-04-08 21:14 ` Ted Zlatanov
2008-04-01 23:03 ` Michael D. Harnois
2008-04-02 2:59 ` Jake Colman
2008-04-02 14:31 ` Simon Josefsson
2008-04-02 14:48 ` Simon Josefsson
2008-04-02 22:13 ` Jake Colman
2008-04-03 13:07 ` Ted Zlatanov
2008-04-03 15:22 ` Jake Colman
2008-04-03 15:28 ` Simon Josefsson
2008-04-22 11:37 ` Steinar Bang
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=87zlsdurjm.fsf@mocca.josefsson.org \
--to=simon@josefsson.org \
--cc=ding@gnus.org \
--cc=mdharnois@gmail.com \
--cc=nathanw@MIT.EDU \
--cc=tzz@lifelogs.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).