Archived Forum Post

Index of archived forum posts

Question:

UnpackHtml failure

Jul 02 '14 at 08:32

Hello,

When calling the UnpackHtml method on certain emails, I get a failure message. Not setting ckx-imap-attach* headers because this is a full email

What does this mean please?

Update Error log below

2014-07-01 14:40:56.806 MSGViewer[902:60b] ChilkatLog:
  FetchSingle:
    DllDate: May  1 2014
    ChilkatVersion: 9.5.0.37
    UnlockPrefix: Anything for 30-day trial
    Architecture: Little Endian; 32-bit
    Language: IOS Objective-C
    VerboseLogging: 1
    msgId: 9856
    bUid: 1
    autoDownloadAttachments: 1
    fetchSingleEmailObject:
      msgId: 9856
      isUid: 1
      fetchSingleComplete:
        autoDownloadAttachments: 1
        fetchComplete:
          autoDownloadAttachments: 1
          fetchCompleteA:
            fetchCommand: aacd UID FETCH 9856 (FLAGS INTERNALDATE BODY.PEEK[])
            ImapCmdSent: aacd UID FETCH 9856 (FLAGS INTERNALDATE BODY.PEEK[])
            sendCommand: Elapsed time: 0 millisec
            getCompleteFetchResponse:
              ImapCmdResp: * 7830 FETCH (UID 9856 INTERNALDATE "01-Jul-2014 01:52:31 +0000" FLAGS () BODY[] {4282}
              flagsAndSizeData: * 7830 FETCH (UID 9856 INTERNALDATE "01-Jul-2014 01:52:31 +0000" FLAGS () BODY[] {4282}
              flags: 
              msgSize: 4282
              isSsl: 1
              ImapCmdResp: (4282 bytes)
              receiveMessageData: Elapsed time: 172 millisec
              Finished receiving MIME.
              ImapCmdResp: )
              ImapCmdResp: aacd OK Success
              receiveRemainder: Elapsed time: 0 millisec
            --getCompleteFetchResponse
          --fetchCompleteA
        --fetchComplete
      --fetchSingleComplete
      fetchSingleComplete: Elapsed time: 2417 millisec
      createFromMimeText:
        createFromMimeObject:
          unwrapSecurity:
            FromHeader: HiFX <info@hifx.com.au>
            ToHeader: brisbane@gmail.com
          --unwrapSecurity
          Setting email body (A)
        --createFromMimeObject
      --createFromMimeText
      ckx-imap-internaldate: 01-Jul-2014 01:52:31 +0000
      ckx-imap-uid: 9856
      ckx-imap-isUid: YES
      Not setting ckx-imap-attach* headers because this is a full email..
      parseMime: Elapsed time: 2 millisec
    --fetchSingleEmailObject
    Success.
  --FetchSingle
--ChilkatLog


Answer

The "not setting ckx-imap-attach*" headers are only informational. If a full email exists, then it includes the attachments and the attachment information is available in the email itself.

If UnpackHtml failed, then it's because of some other reason. I would recommend posting the full contents of the LastErrorText here.

PS> Make sure to encapsulate the LastErrorText in "pre" tags to make it readable.


Answer

The email is a plain text email - that was the problem :)

UnpackHtml fails and returns Success No


Answer

If UnpackHtml returned a failed status, look at the LastErrorText for the call to UnpackHtml.

What is shown above is the LastErrorText for the call to FetchSingle. The name of the method call is the first thing shown:

2014-07-01 14:40:56.806 MSGViewer[902:60b] ChilkatLog:
  **FetchSingle:**
    DllDate: May  1 2014
    ChilkatVersion: 9.5.0.37
    ...