Hi Sam;

Sam Varshavchik wrote:
> Chip Mefford writes:
> 
>> Having a ummm, , 'debate' with the folks at zimbra concerning importing
>> moderately large courier maildirs and failing.
>>
>> they say my courier-imap server is sending invalid fetch responses,
>> causing their script to bomb.
>>
>>> The problem is actually mentioned in
>>> http://bugzilla.zimbra.com/show_bug.cgi?id=31202#c24.
>>>
>>> Basically, the invalid extra spaces around "UIC 432967" in the following
>>> response, and that the message could not be fetched:
>>>
>>>     A87 UID FETCH 48297:51952 (BODY.PEEK[] UID INTERNALDATE)
>>>     * 1 FETCH ( UID 48297 )
>>>     * NO Cannot open message 1

>> clues? is this actually invalid? I can't find an rfc on this.
> 
> I cannot reproduce this claim, completely. First of all, since three
> items are requested: BODY.PEEK[], UID, and INTERNALDATE, Courier's
> response includes those three items. An actual example:
> 
> * 17 FETCH (BODY[] {4931}\r\n
> <<4931 bytes of message data>> UID 62 INTERNALDATE "27-May-2009 04:53:23
> -0400")
> 
> So the above example given is completely bogus.

Interesting.

I can repro on a failed uid fetch. The complaint these folks
have is that the leading and trailing spaces around the UID
inside the parens are invalid. I haven't been able to determine
if this is the case.

Now, as to why this message fails to fetch, I've no idea. The
message looks fine, but it does have an oddball flag ($NotJunk)
and it's the only message in INBOX that has that flag. But
that's not really what's at issue.

It's my impression that courier-imap is behaving correctly, and
their claim about the spaces inside the parens is bogus. Can
you (or anyone) back their claim?

Here's a trimmed down session:

A00 OK LOGIN Ok.
A01 SELECT INBOX
* FLAGS ($MDNSent NonJunk $NotJunk $Forwarded \Draft \Answered \Flagged
\Deleted \Seen \Recent)
* OK [PERMANENTFLAGS ($MDNSent NonJunk $NotJunk $Forwarded \* \Draft
\Answered \Flagged \Deleted \Seen)] Limited
* 69 EXISTS
* 4 RECENT
* OK [UIDVALIDITY 1243510581] Ok
* OK [MYRIGHTS "acdilrsw"] ACL
A01 OK [READ-WRITE] Ok

A02 FETCH 1:65 (FLAGS UID)
(-SNIPPED FOR CLARITY-)
* 8 FETCH (FLAGS ($NotJunk) UID 8)
(-SNIPPED FOR CLARITY-)
A02 OK FETCH completed.

A03 UID FETCH 8 (BODY.PEEK[] UID INTERNALDATE)
* 8 FETCH ( UID 8 )
* NO Cannot open message 8
A03 OK FETCH completed.

A04 UID FETCH 8 BODY.PEEK[]
* 8 FETCH (UID 8 )
* NO Cannot open message 8
A04 OK FETCH completed.

A05 UID FETCH 8 UID
* 8 FETCH (UID 8)
A05 OK FETCH completed.

A06 UID FETCH 8 INTERNALDATE
* 8 FETCH (UID 8 )
* NO Cannot open message 8
A06 OK FETCH completed.


-- 

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
Courier-imap mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap

Reply via email to