Question:
Hello Fellow Chilkat Users: I have taken over support of some code that POPs email. It has been happily retrieving mail from a UNIX mailbox, but our admins insist that we start using Exchange.
I made the requisite code changes, and am able to successfully connect and POP email. However, with HTML formatted email, I find that the "Body" retrived by Chilkat is wrong, in that it includes most of the email, including the header, style info, etc.
Is there something I need to do (or can do) to properly retrieve the body of the email? Right now, the code is just doing a simple message.header, message.to, message.body, etc...
Help! JimB
1) Verify that the problem exists using the very latest version of the component. The latest version (v9.4.0) may be downloaded from here:
http://www.chilkatsoft.com/downloads_ActiveX.asp#downloads32
Alternatively, you may test with the next version that is soon to be released:
http://www.chilkatsoft.com/preRelease/ChilkatMail2-9.4.1-win32.zip
2) If the problem remains, we would need more information to understand the cause -- such as a simple code snippet and/or contents of the LastErrorText property captured after whichever methods are suspected to not behave as expected.
Hello - below is from a log file I created by simply reading a message and iterating through the resulting fields. The first field is preceeded by the name "Body :"; other fields are further down in the file, also preceeded by the field name, a bunch of spaces, and a colon.
Note how the body contains what looks to be the entire message, including XML and HTML tags, header fields, etc. -Jim
Jim Log File Opened 5/31/2013 3:15:36 PM with file handle 1 ChilkatMailMan2 version 9.4.0.0
Body : <html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" klzzwxh:0001="" office="" 2004="" 12="" omml"="" klzzwxh:0002="" tr="" rec-html40"=""> <head> <meta http-equiv="Content-Type" content="text/html; charset=us-ascii"> <meta name="Generator" content="Microsoft Word 14 (filtered medium)"> <style></style> </head> <body lang="EN-US" link="blue" vlink="purple">
Qct-enbl-2315 is giving the following eror:<o:p></o:p>
error (slimcat.process): operation unsuccessful
The MCH is not accessible, check the system setup
verifyCardConfig() Error: Unexpected response from sc-get-rfp<o:p></o:p>
<o:p> </o:p>
I tried to powercycle the <blah blah="" blah=""> manually and don’t see any red lights after a while.<o:p></o:p>
<o:p> </o:p>
I ran the following commands from ENBL but am getting errors:<o:p></o:p>
<o:p></o:p>
[root@qct-enbl-2315-0 ~]# sc-boot power-cycle<o:p></o:p>
<o:p> </o:p>
SCBOOT START : 13:5:51 EPOCH : 1369944351<o:p></o:p>
<o:p> </o:p>
Processing power cycle for acc0 acc1 v5c0 v5c1 mch rfp txc rxc<o:p></o:p>
acc0 : making sure that acc is healthy before power-cycling rfp<o:p></o:p>
acc0 : ping successful - <blah blah="" blah="">is up<o:p></o:p>
acc0 : polling for active state : sc acc0 get sys_cfg SysState<o:p></o:p>
acc0 : detected active state on ethc0<o:p></o:p>
rfp : power cycle : sc rfp power --cycle<o:p></o:p>
rfp : ERROR cannot power cycle ... quitting ...<o:p></o:p>
[root@qct-enbl-2315-0 ~]# esm --verify<o:p></o:p>
<o:p> </o:p>
========= Check cards and configuration =========<o:p></o:p>
acc1 --> up<o:p></o:p>
acc0 --> up<o:p></o:p>
v5c0 --> up<o:p></o:p>
v5c1 --> up<o:p></o:p>
v5csx --> down<o:p></o:p>
<o:p> </o:p>
======== Check PLL lock =========<o:p></o:p>
INFO [ iter 0 ]Read PLL lock for rfp --> Valid<o:p></o:p>
INFO [ iter 0 ]Read PLL lock for v5c0 --> Valid<o:p></o:p>
INFO [ iter 0 ]Read PLL lock for v5c1 --> Valid<o:p></o:p>
<o:p> </o:p>
======== Check Frequency Configuration =========<o:p></o:p>
Interrupted... Exiting<o:p></o:p>
IndexError: list index out of range<o:p></o:p>
File "/opt/slimcat/esm", line 6319, in <module><o:p></o:p>
if not esm.execute ():<o:p></o:p>
<o:p> </o:p>
File "/opt/<blah blah="" blah="">uot;, line 5863, in execute<o:p></o:p>
return self.verify_slimcat ()<o:p></o:p>
<o:p> </o:p>
File "/opt<blah blah="" blah="">t;, line 5291, in verify_slimcat<o:p></o:p>
ul_freq_fru = get_freqs.split(',')[2].split('-')<o:p></o:p>
<o:p> </o:p>
[root@qct-enbl-2315-0 ~]# sc-boot power-cycle<o:p></o:p>
<o:p> </o:p>
SCBOOT START : 13:9:59 EPOCH : 1369944599<o:p></o:p>
<o:p> </o:p>
Processing power cycle for acc0 acc1 v5c0 v5c1 mch rfp txc rxc<o:p></o:p>
acc0 : making sure that acc is healthy before power-cycling rfp<o:p></o:p>
acc0 : ping successful <blah blah="" blah="">is up<o:p></o:p>
acc0 : polling for active state : sc acc0 get sys_cfg SysState<o:p></o:p>
acc0 : detected active state on ethc0<o:p></o:p>
rfp : power cycle : sc rfp power --cycle<o:p></o:p>
rfp : ERROR cannot power cycle ... quitting ...<o:p></o:p>
[root@qct-enbl-2315-0 ~]#<o:p></o:p>
<o:p> </o:p>
Thanks<o:p></o:p>
Ankit<o:p></o:p>
<o:p> </o:p>
BounceAddress :
Charset : us-ascii
EmailDate : 5/30/2013 8:14:59 PM
EmailDateStr : Thu, 30 May 2013 20:14:59 GMT
EncryptedBy :
From : "Ka<blah blah="" blah="">it" <akapo<blah blah="" klzzwxh:0481="">
FromAddress : akap<blah blah blah>m.com
fromName : Ka<blah blah="" blah="">it
HasHtmlBody : 1
HasPlainTextBody : 0
Header : Received: from NASAN<blah blah="" klzzwxh:0486="" ([169.254.6.242])="" by="" nasan<blah="" blah="" klzzwxh:0487="" ([10.45.158.129])="" with="" mapi="" id="" 14.02.0318.004;="" thu,="" 30="" may="" 2013="" 13:14:59="" -0700="" from:="" "ka<blah="" blah="" blah="">it" <akap<blah blah="" klzzwxh:0488=""> To: labs<blah blah="" blah="">x <labsup<blah blah="" klzzwxh:0489=""> Subject: qct-en<blah blah="" blah="">t comming up (Urgent) Thread-Topic: qct-<blah blah="" blah="">ot comming up (Urgent) Thread-Index: Ac5dcluFVEF1mNIyQZa7ljIpCJ41aQ== Date: Thu, 30 May 2013 13:14:59 -0700 Message-ID: <7C97B5259BD6CA49AD855D118EE940E21D88AEF3@NASAN<blah blah="" klzzwxh:0490=""> Accept-Language: en-US Content-Language: en-US X-MS-Exchange-Organization-AuthAs: Internal X-MS-Exchange-Organization-AuthMechanism: 04 X-MS-Exchange-Organization-AuthSource: NASANE<blah blah blah>m.com X-MS-Has-Attach: X-Auto-Response-Suppress: DR, OOF, AutoReply X-MS-Exchange-Organization-SCL: -1 X-MS-TNEF-Correlator: Content-Type: text/html; charset="us-ascii" MIME-Version: 1.0 X-UIDL: 88
IsMultipartReport : 0
Language : latin1
Mailer :
NumAlternatives : 1
NumAttachedMessages : 0
NumAttachments : 0
NumBcc : 0
NumCC : 0
NumDaysOld : 1
NumHeaderFields : 20
NumTo : 1
PreferredCharset :
ReceivedEncrypted : 0
ReplyTo :
SignedBy :
Size : 10857
subject : qct-enbl-2315 not comming up (Urgent)
uidl : 88