Archived Forum PostQuestion:
Hi Guys,
As part of another problem I've come across a case where Chilkat doesn't seem to be able to retrieve certain emails from an IMAP server. It can connect, login, list the folders and get the number of emails fine for the user in question but when it tries to retrieve either the email header (via FetchSingleHeader) or the email itself (via FetchSingle) for a three particular emails it spits out an error (listed below with verbose logging switched on) - annoyingly it's managed to handle over 1400 emails just fine. Just in case it's a connection problem, my code disconnects, reconnects and tries again...but gets the same result.
I don't understand exactly what it's telling me (I'm guessing that it's pulled out quite a lot of the details going by the content) but whatever is happening means that the resultant Chilkat Email object returned to my C# code is null. I'm running v9.5.0.47 of the IMAP components.
Any ideas?
ChilkatLog:
FetchSingleHeader(47ms):
DllDate: Jan 21 2015
ChilkatVersion: 9.5.0.47
UnlockPrefix: CUBICIIMAPMAILQ
Username: HARVESTER001:Administrator
Architecture: Little Endian; 64-bit
Language: .NET 4.0 / x64
VerboseLogging: 1
msgId: 1
bUid: 0
msgId: 1
isUid: 0
fetchSummary(47ms):
fetchMultipleSummaries(47ms):
ImapCmdSent: aaal FETCH 1 (UID FLAGS RFC822.SIZE BODYSTRUCTURE BODY.PEEK[HEADER])
getCompleteResponse2(47ms):
ImapCmdResp: * 1 FETCH (UID 169 FLAGS (\Seen) RFC822.SIZE 47143 BODYSTRUCTURE ((("text" "plain" ("charset" "utf-8") NIL NIL "quoted-printable" 9850 258 NIL NIL NIL NIL)("text" "html" ("charset" "utf-8") NIL NIL "quoted-printable" 31209 638 NIL NIL NIL NIL) "alternative" ("boundary" "Apple-Mail-66198A17-D64E-4DAF-88A8-8DD3A6C53504") NIL NIL)("image" "png" NIL "<07414dbb.40d5799a.png.ae13c5ce>" NIL "base64" 22864 NIL "inline" NIL NIL) "related" ("boundary" "----------MIME-81672904-1975690878-delim") NIL NIL) BODY[HEADER] {2208}
ImapCmdResp: aaal OK FETCH completed.
--getCompleteResponse2
--fetchMultipleSummaries
parseSummary:
----
parseItem: UID
uid: 169
----
parseItem: FLAGS
flagsFromHeaderRequest2: \Seen
----
parseItem: RFC822.SIZE
totalSize: 47143
----
parseItem: BODYSTRUCTURE
bodystructure1: ((("text" "plain" ("charset" "utf-8") NIL NIL "quoted-printable" 9850 258 NIL NIL NIL NIL)("text" "html" ("charset" "utf-8") NIL NIL "quoted-printable" 31209 638 NIL NIL NIL NIL) "alternative" ("boundary" "Apple-Mail-66198A17-D64E-4DAF-88A8-8DD3A6C53504") NIL NIL)("image" "png" NIL "<07414dbb.40d5799a.png.ae13c5ce>" NIL "base64" 22864 NIL "inline" NIL NIL) "related" ("boundary" "----------MIME-81672904-1975690878-delim") NIL NIL) BODY[HEADER] {2208}
MIME-Version: 1.0
Received: from mx-gate21-dus.antispameurope.com (94.100.134.121) by
smokesignal.bgsarchitects.co.uk (192.168.51.160) with Microsoft SMTP Server
id 14.1.218.12; Fri, 16 May 2014 12:50:32 +0100
Received: from smtp.hosts.co.uk (85.233.160.19) by
mx-gate21-dus.antispameurope.com; Fri, 16 May 2014 13:50:35 +0200
Received: from [212.84.116.230] (helo=localhost.local) by smtp.hosts.co.uk
with esmtpa (Exim 4.72) (envelope-from <abigail@momentumengineering.com>) id
1WlGeR-00012Z-5T for gary@bgsarchitects.co.uk; Fri, 16 May 2014 12:50:12
+0100
X-Footer: bW9tZW50dW1lbmdpbmVlcmluZy5jb20=
Received: from [85.255.235.74] ([85.255.235.74]) by localhost.local (Kerio
Connect 8.2.4) for gary@bgsarchitects.co.uk; Fri, 16 May 2014 12:50:11 +0100
From: Abigail Matthews <abigail@momentumengineering.com>
Subject: Re: Cheltenham Gallery & Museum
Message-ID: <a1a9b293-7e0b-4e8c-b3f0-ef89f7f95188@momentumengineering.com>
Date: Fri, 16 May 2014 12:50:10 +0100
References: <741D7544-E7BE-4215-A23C-9F379FDD3463@momentumengineering.com> <cf97f8ad.19a67%gary.collins@bgsarchitects.co.uk> <e66ad321-07a3-401a-b992-46c9f892f0a4@momentumengineering.com> <3D8635F4-DBDF-424E-826E-CFFFAEA0C773@bgsarchitects.co.uk>
To: Gary Collins <gary@bgsarchitects.co.uk>
In-Reply-To: <3D8635F4-DBDF-424E-826E-CFFFAEA0C773@bgsarchitects.co.uk>
Content-Type: multipart/related;
boundary="----------MIME-81672904-1975690878-delim"
X-antispameurope-sender: abigail@momentumengineering.com
X-antispameurope-recipient: gary@bgsarchitects.co.uk
X-antispameurope-MSGID: 3cfdb8a8910bd008223c2b49d3df8d0e-5244d92d2ee1b70b11e2c0d06ba2e7ba
X-antispameurope-Virusscan: CLEAN
X-antispameurope-disclaimer: This E-Mail was scanned by www.antispameurope.com E-Mailservice on mx-gate21-dus with 2EDEE1F20034
X-antispameurope-date: 1400241033
X-antispameurope: INCOMING:
X-antispameurope-Connect: smtp.hosts.co.uk[85.233.160.19],TLS=1
X-antispameurope-RBLWL: CLEAN
X-antispameurope-REASON: ase-aoarm:
X-antispameurope-Spamstatus: CLEAN
Return-Path: abigail@momentumengineering.com
X-MS-Exchange-Organization-AuthSource: SMOKESIGNAL.bgsarchitects.co.uk
X-MS-Exchange-Organization-AuthAs: Anonymous
)
aaal OK FETCH completed.
parseBodyStructure:
parseMultipartBody:
parseBodyStructure:
parseMultipartBody:
parseBodyStructure:
parseNonMultipartBody:
type: text
subType: plain
captureParenList:
charset: utf-8
--captureParenList
contentId: NIL
descrip: NIL
encoding: quoted-printable
size: 9850
numTextLines: 258
MD5: NIL
part: 1.1
--parseNonMultipartBody
--parseBodyStructure
parseBodyStructure:
parseNonMultipartBody:
type: text
subType: html
captureParenList:
charset: utf-8
--captureParenList
contentId: NIL
descrip: NIL
encoding: quoted-printable
size: 31209
numTextLines: 638
MD5: NIL
part: 1.2
--parseNonMultipartBody
--parseBodyStructure
multipartSubType: alternative
checkSetAttachment:
type: text
multipartParentType: alternative
childIndex: 0
disposition:
bPassedAlternative: 0
bPassedRelated: 0
Not considered an attachment.
--checkSetAttachment
checkSetAttachment:
type: text
multipartParentType: alternative
childIndex: 1
disposition:
bPassedAlternative: 0
bPassedRelated: 0
Not considered an attachment.
--checkSetAttachment
--parseMultipartBody
--parseBodyStructure
parseBodyStructure:
parseNonMultipartBody:
type: image
subType: png
contentId: <07414dbb.40d5799a.png.ae13c5ce>
descrip: NIL
encoding: base64
size: 22864
MD5: NIL
captureDisposition:
parseDispositionError: 1
--captureDisposition
parseBodyStructureError: 8
--parseNonMultipartBody
--parseBodyStructure
parseBodyStructureError: 3
--parseMultipartBody
--parseBodyStructure
Error parsing BODYSTRUCTURE.
fetchItems: (UID FLAGS RFC822.SIZE BODYSTRUCTURE BODY.PEEK[HEADER])
imapResponse: * 1 FETCH (UID 169 FLAGS (\Seen) RFC822.SIZE 47143 BODYSTRUCTURE ((("text" "plain" ("charset" "utf-8") NIL NIL "quoted-printable" 9850 258 NIL NIL NIL NIL)("text" "html" ("charset" "utf-8") NIL NIL "quoted-printable" 31209 638 NIL NIL NIL NIL) "alternative" ("boundary" "Apple-Mail-66198A17-D64E-4DAF-88A8-8DD3A6C53504") NIL NIL)("image" "png" NIL "<07414dbb.40d5799a.png.ae13c5ce>" NIL "base64" 22864 NIL "inline" NIL NIL) "related" ("boundary" "----------MIME-81672904-1975690878-delim") NIL NIL) BODY[HEADER] {2208}
MIME-Version: 1.0
Received: from mx-gate21-dus.antispameurope.com (94.100.134.121) by
smokesignal.bgsarchitects.co.uk (192.168.51.160) with Microsoft SMTP Server
id 14.1.218.12; Fri, 16 May 2014 12:50:32 +0100
Received: from smtp.hosts.co.uk (85.233.160.19) by
mx-gate21-dus.antispameurope.com; Fri, 16 May 2014 13:50:35 +0200
Received: from [212.84.116.230] (helo=localhost.local) by smtp.hosts.co.uk
with esmtpa (Exim 4.72) (envelope-from <abigail@momentumengineering.com>) id
1WlGeR-00012Z-5T for gary@bgsarchitects.co.uk; Fri, 16 May 2014 12:50:12
+0100
X-Footer: bW9tZW50dW1lbmdpbmVlcmluZy5jb20=
Received: from [85.255.235.74] ([85.255.235.74]) by localhost.local (Kerio
Connect 8.2.4) for gary@bgsarchitects.co.uk; Fri, 16 May 2014 12:50:11 +0100
From: Abigail Matthews <abigail@momentumengineering.com>
Subject: Re: Cheltenham Gallery & Museum
Message-ID: <a1a9b293-7e0b-4e8c-b3f0-ef89f7f95188@momentumengineering.com>
Date: Fri, 16 May 2014 12:50:10 +0100
References: <741D7544-E7BE-4215-A23C-9F379FDD3463@momentumengineering.com> <cf97f8ad.19a67%gary.collins@bgsarchitects.co.uk> <e66ad321-07a3-401a-b992-46c9f892f0a4@momentumengineering.com> <3D8635F4-DBDF-424E-826E-CFFFAEA0C773@bgsarchitects.co.uk>
To: Gary Collins <gary@bgsarchitects.co.uk>
In-Reply-To: <3D8635F4-DBDF-424E-826E-CFFFAEA0C773@bgsarchitects.co.uk>
Content-Type: multipart/related;
boundary="----------MIME-81672904-1975690878-delim"
X-antispameurope-sender: abigail@momentumengineering.com
X-antispameurope-recipient: gary@bgsarchitects.co.uk
X-antispameurope-MSGID: 3cfdb8a8910bd008223c2b49d3df8d0e-5244d92d2ee1b70b11e2c0d06ba2e7ba
X-antispameurope-Virusscan: CLEAN
X-antispameurope-disclaimer: This E-Mail was scanned by www.antispameurope.com E-Mailservice on mx-gate21-dus with 2EDEE1F20034
X-antispameurope-date: 1400241033
X-antispameurope: INCOMING:
X-antispameurope-Connect: smtp.hosts.co.uk[85.233.160.19],TLS=1
X-antispameurope-RBLWL: CLEAN
X-antispameurope-REASON: ase-aoarm:
X-antispameurope-Spamstatus: CLEAN
Return-Path: abigail@momentumengineering.com
X-MS-Exchange-Organization-AuthSource: SMOKESIGNAL.bgsarchitects.co.uk
X-MS-Exchange-Organization-AuthAs: Anonymous
)
aaal OK FETCH completed.
--parseSummary
parseSummary failed.
--fetchSummary
fetchSummary failed.
Failed.
--FetchSingleHeader
--ChilkatLog
Check to see if this new build fixes the problem:
32-bit Download: http://www.chilkatsoft.com/download/preRelease/ChilkatDotNet4-9.5.0-win32.zip
64-bit Download: http://www.chilkatsoft.com/download/preRelease/ChilkatDotNet4-9.5.0-x64.zip
Thanks! I'll have a look...
Just given that a try and there are no errors coming out now so it looks like we have a winner.
Thanks for getting it sorted - much appreciated =:)