> Right now I'm having problems of getting a clue of what's going on, but
> here are some more things:
> 
> 1) What is the format of the source message in Maildir/cur/? Find one
>  message and check if it's stored in DOS or Unix style (\r\n or just
>  \n), or which other format (mac format?).

Unix: \n

> 2) Do a fetch BODY.PEEK[] on that message, then a BODY[HEADER] and finally
>  RFC822.HEADER.

See below.

> I'm suspecting that the problem is in fgetcCRLF (which is a function I
> detest). :-) The point of the function is to convert any source input to
> IMAP's required CRLF format.

I think that may be it. If that function is used by BODY[HEADER] and
RFC822.HEADER but not BODY.PEEK[], it appears that it is unsuccessful in its
efforts to change \n (LF) to \r\n (CRLF). Or if this is done on some cached
message (or never written to disk), the disk copy keeps being read instead.
Either way, later routines to assume (per the spec, I suppose) they can chop
off 2 characters (CRLF) where there is only one (LF).

-B...


________________________________________________________________________
* OK Welcome to Binc IMAP v1.1.9 (c) Copyright 2002, 2003 Andreas Aardal
Hanssen at 2003-08-16 02:29:58 CDT
1 login "mom" "d0115"
1 OK LOGIN completed
2 select INBOX
* 14 EXISTS
* 1 RECENT
* OK [UNSEEN 14] Message 14 is first unseen
* OK [UIDVALIDITY 1061019494]
* OK [UIDNEXT 33] 33 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 14 BODY.PEEK[]
* 8 FETCH (BODY[] {799}
Return-Path: <[EMAIL PROTECTED]>
Delivered-To: [EMAIL PROTECTED]
Received: (qmail 16481 invoked by alias); 16 Aug 2003 08:22:44 -0000
Delivered-To: [EMAIL PROTECTED]
Received: (qmail 16478 invoked by uid 0); 16 Aug 2003 08:22:44 -0000
Received: from tibook.domain1.com (HELO ?192.168.1.18?) (192.168.1.18)
  by 0 with SMTP; 16 Aug 2003 08:22:44 -0000
User-Agent: Microsoft-Entourage/10.1.1.2418
Date: Sat, 16 Aug 2003 03:22:19 -0500
Subject: [bincimap] Again with the testing
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

-B...
-- 
http://www.domain1.com/

 UID 14)
3 OK FETCH completed
4 UID FETCH 14 BODY[HEADER]
* 8 FETCH (BODY[HEADER] {743}
Return-Path: <[EMAIL PROTECTED]>
elivered-To: [EMAIL PROTECTED]
eceived: (qmail 16481 invoked by alias); 16 Aug 2003 08:22:44 -0000
elivered-To: [EMAIL PROTECTED]
eceived: (qmail 16478 invoked by uid 0); 16 Aug 2003 08:22:44 -0000
eceived: from tibook.domain1.com (HELO ?192.168.1.18?) (192.168.1.18)
  by 0 with SMTP; 16 Aug 2003 08:22:44 -0000
ser-Agent: Microsoft-Entourage/10.1.1.2418
ate: Sat, 16 Aug 2003 03:22:19 -0500
ubject: Again with the testing
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


 UID 14)
4 OK FETCH completed
5 UID FETCH 14 RFC822.HEADER
* 8 FETCH (RFC822.HEADER {743}
Return-Path: <[EMAIL PROTECTED]>
elivered-To: [EMAIL PROTECTED]
eceived: (qmail 16481 invoked by alias); 16 Aug 2003 08:22:44 -0000
elivered-To: [EMAIL PROTECTED]
eceived: (qmail 16478 invoked by uid 0); 16 Aug 2003 08:22:44 -0000
eceived: from tibook.domain1.com (HELO ?192.168.1.18?) (192.168.1.18)
  by 0 with SMTP; 16 Aug 2003 08:22:44 -0000
ser-Agent: Microsoft-Entourage/10.1.1.2418
ate: Sat, 16 Aug 2003 03:22:19 -0500
ubject: Again with the testing
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


 UID 14)
5 OK FETCH completed
6 logout
* BYE Binc IMAP shutting down

Reply via email to