> Wow - I never saw this before. It might seem that there is a bug in the
> mime parser, or in the IO class, under OSX. I can't reproduce that error
> here.
Didn't Jobs say OS X would bring surprises? ;-)
The interesting thing to me is that the headers are mangled during the
directory listing, but not when an individual message is retrieved. What is
different about the two routines that accomplish these tasks?
> If you can grant me access to your machine, I can dig into this error. I
> guess it requires some debugging to figure out what's wrong.
I'll have to do that later. For now I have to sleep.
> Can you run the following commands for me?
> Connect to the server with openssl or telnet, then:
>
> 1 LOGIN <user> <pass>
> 2 SELECT INBOX
> 3 UID FETCH 16 BODY[HEADER.FIELDS (Received)]
> 4 UID FETCH 16 BODY[1]
> 5 LOGOUT
>
> If you could do this, then it will make it a tad easier to understand the
> cause of this problem.
Absolutely. See below. I added a couple more FETCH commands to make affairs
more clear. Further down is an Entourage session that demonstrates the
difference between the corrupted headers retrieved during a directory
listing and the correct headers retrieved during a full message retrieval.
-B...
________________________________________________________________________
* OK Welcome to Binc IMAP v1.1.9 (c) Copyright 2002, 2003 Andreas Aardal
Hanssen at 2003-08-16 04:39:35 CDT
1 login "testuser" "testpwd"
1 OK LOGIN completed
2 select INBOX
* 11 EXISTS
* 1 RECENT
* OK [UNSEEN 11] Message 11 is first unseen
* OK [UIDVALIDITY 1061019494]
* OK [UIDNEXT 18] 18 is the next UID
* FLAGS (\Answered \Flagged \Deleted \Recent \Seen \Draft)
* OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft)] Limited
2 OK SELECT completed
3 UID FETCH 16 BODY[HEADER.FIELDS (Received)]
* 10 FETCH (BODY[HEADER.FIELDS (Received)] {2}
UID 16)
3 OK FETCH completed
4 UID FETCH 16 BODY[1]
* 10 FETCH (BODY[1] {44}
-B...
--
http://www.domain1.com/
UID 16)
4 OK FETCH completed
5 UID FETCH 16 BODY[HEADER.FIELDS (Return-Path)]
* 10 FETCH (BODY[HEADER.FIELDS (Return-Path)] {39}
Return-Path: <[EMAIL PROTECTED]>
UID 16)
5 OK FETCH completed
6 UID FETCH 16 BODY[HEADER.FIELDS (ubject)]
* 10 FETCH (BODY[HEADER.FIELDS (ubject)] {35}
ubject: Testing (with ethereal)
UID 16)
6 OK FETCH completed
7 logout
* BYE Binc IMAP shutting down
7 OK LOGOUT completed
________________________________________________________________________
A024 SELECT "INBOX"
* 12 EXISTS
* 1 RECENT
* OK [UNSEEN 12] Message 12 is first unseen
* OK [UIDVALIDITY 1061019494]
* OK [UIDNEXT 20] 20 is the next UID
* FLAGS (\Answered \Flagged \Deleted \Recent \Seen \Draft)
* OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft)] Limited
A024 OK SELECT completed
A025 LIST "" "INBOX*"
* LIST (\UnMarked) "/" "INBOX"
* LIST (\UnMarked) "/" "INBOX/Drafts"
* LIST (\UnMarked) "/" "INBOX/Sent Items"
* LIST (\UnMarked) "/" "INBOX/Trash"
A025 OK LIST completed
A026 LSUB "" "INBOX*"
* LSUB (\UnMarked) "/" "INBOX"
* LSUB (\UnMarked) "/" "INBOX/Drafts"
* LSUB (\UnMarked) "/" "INBOX/Sent Items"
* LSUB (\UnMarked) "/" "INBOX/Trash"
A026 OK LSUB completed
A027 FETCH 1:* (UID FLAGS)
* 1 FETCH (UID 6 FLAGS (\Seen))
* 2 FETCH (UID 7 FLAGS (\Seen))
* 3 FETCH (UID 8 FLAGS (\Seen))
* 4 FETCH (UID 9 FLAGS (\Seen))
* 5 FETCH (UID 10 FLAGS (\Seen))
* 6 FETCH (UID 11 FLAGS (\Seen))
* 7 FETCH (UID 12 FLAGS (\Seen))
* 8 FETCH (UID 14 FLAGS (\Seen))
* 9 FETCH (UID 15 FLAGS (\Seen))
* 10 FETCH (UID 16 FLAGS (\Seen))
* 11 FETCH (UID 17 FLAGS (\Seen))
* 12 FETCH (UID 19 FLAGS (\Recent))
A027 OK FETCH completed
A028 UID FETCH 19 (UID FLAGS INTERNALDATE RFC822.SIZE RFC822.HEADER)
* 12 FETCH (UID 19 FLAGS (\Recent) INTERNALDATE "16-Aug-2003 10:08:46 GMT"
RFC822.SIZE 822 RFC822.HEADER {750}
Return-Path: <[EMAIL PROTECTED]>
elivered-To: [EMAIL PROTECTED]
eceived: (qmail 7192 invoked by alias); 16 Aug 2003 10:08:46 -0000
elivered-To: [EMAIL PROTECTED]
eceived: (qmail 7189 invoked by uid 0); 16 Aug 2003 10:08:46 -0000
eceived: from tibook.domain1.com (HELO ?192.168.1.18?) (192.168.1.18)
by 0 with SMTP; 16 Aug 2003 10:08:46 -0000
ser-Agent: Microsoft-Entourage/10.1.1.2418
ate: Sat, 16 Aug 2003 05:08:19 -0500
ubject: Testing with ethereal again ...
rom: "Bruce A. Burdick, Jr." <[EMAIL PROTECTED]>
o: Test User <[EMAIL PROTECTED]>
essage-ID: <[EMAIL PROTECTED]>
ime-version: 1.0
ontent-type: text/plain; charset="US-ASCII"
ontent-transfer-encoding: 7bit
)
A028 OK FETCH completed
A029 STATUS "INBOX/Drafts" (UNSEEN)
* STATUS "INBOX/Drafts" (UNSEEN 0)
A029 OK STATUS completed
A030 STATUS "INBOX/Sent Items" (UNSEEN)
* STATUS "INBOX/Sent Items" (UNSEEN 0)
A030 OK STATUS completed
A031 STATUS "INBOX/Trash" (UNSEEN)
* STATUS "INBOX/Trash" (UNSEEN 0)
A031 OK STATUS completed
A032 UID FETCH 19 (UID FLAGS INTERNALDATE RFC822.SIZE BODY.PEEK[])
* 12 FETCH (UID 19 FLAGS (\Recent) INTERNALDATE "16-Aug-2003 10:08:46 GMT"
RFC822.SIZE 822 BODY[] {822}
Return-Path: <[EMAIL PROTECTED]>
Delivered-To: [EMAIL PROTECTED]
Received: (qmail 7192 invoked by alias); 16 Aug 2003 10:08:46 -0000
Delivered-To: [EMAIL PROTECTED]
Received: (qmail 7189 invoked by uid 0); 16 Aug 2003 10:08:46 -0000
Received: from tibook.domain1.com (HELO ?192.168.1.18?) (192.168.1.18)
by 0 with SMTP; 16 Aug 2003 10:08:46 -0000
User-Agent: Microsoft-Entourage/10.1.1.2418
Date: Sat, 16 Aug 2003 05:08:19 -0500
Subject: [bincimap] Testing with ethereal again ...
From: "Bruce A. Burdick, Jr." <[EMAIL PROTECTED]>
To: Test User <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>
Mime-version: 1.0
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
Ethereal ...
-B...
--
http://www.domain1.com/
)
A032 OK FETCH completed
A033 UID STORE 19 +FLAGS.SILENT (\SEEN)
A033 OK STORE completed