Subject: [sup-talk] Syncing from Exchange IMAP

From: [email-masked] (Dan Sully)
Date: Tue, 27 Nov 2007 17:25:22 -0800

So I really like pain, and am trying to sync from an Exchange server via
IMAP. Login appears to work ok, but then:

Updating message imaps://owa015.foo.net/Inbox#11848861110123690,
source 1 => 1, offset 11848861110123690 => 11848861110123690, state {inbox}
=> {inbox}

[Tue Nov 27 17:21:37 -0800 2007] problem getting messages from
imaps://owa015.foo.net/Inbox: IMAP message mismatch: requested
11848861110123690, got 11848861110160176.

[Tue Nov 27 17:21:37 -0800 2007] error loading messages from
imaps://owa015.foo.net/Inbox: IMAP message mismatch: requested
11848861110123690, got 11848861110160176.

Scanned 1, added 0, updated 1 messages from
imaps://owa015.foo.net/Inbox.

I've tried with both Inbox and INBOX. Any thoughts? Thunderbird (*spit*)
talks to the server fine.

-D
--
<dsully> please describe web 2.0 to me in 2 sentences or less.
<jwb> you make all the content. they keep all the revenue.

---

From: [email-masked] (William Morgan)
Date: Wed, 28 Nov 2007 09:11:50 -0800

Excerpts from Dan Sully's message of Tue Nov 27 17:25:22 -0800 2007:
> [Tue Nov 27 17:21:37 -0800 2007] problem getting messages from imaps://owa015.foo.net/Inbox: IMAP message mismatch: requested 11848861110123690, got 11848861110160176.

This suggests that Exchange is crazy and is giving different sizes for
the same message at different points in time.

But that error is only a sanity check (hence "crazy"). If you comment
out the line that raises it (lib/sup/imap.rb line 276), do things work
right? Specifically, when you hit enter in thread-index-mode, do you
actually see the messages you thought you would?

-- 
William <wmorgan-sup at masanjin.net>

---

From: [email-masked] (Dan Sully)
Date: Wed, 28 Nov 2007 10:09:01 -0800

* William Morgan shaped the electrons to say...

>the same message at different points in time.

I concur that Exchange is crazy.

>actually see the messages you thought you would?

Yes, things appear to work right. The mismatch only fails on the first 2
messages.

-D

---

From: [email-masked] (Brendan O'Connor)
Date: Wed, 28 Nov 2007 22:35:23 +0000

> Yes, things appear to work right. The mismatch only fails on the first 2

Yep, I did the same workaround for exchange IMAP and it works for me too.

---

From: [email-masked] (William Morgan)
Date: Sat, 08 Dec 2007 13:46:29 -0800

Excerpts from Brendan O'Connor's message of Wed Nov 28 14:35:23 -0800 2007:
> > Yes, things appear to work right. The mismatch only fails on the
> > first 2 messages.
> 

I've disabled this sanity check in SVN.