Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>This could be for a few reasons:</p> <p>1)It is possible that you're not downloading enough information about the CTCoreMessage. When making a request to download the CTCoreMessages you must specify what information you want by specifying the correct fetch attributes.</p> <p>For example:</p> <pre><code>[core_folder messagesFromSequenceNumber:from to:to withFetchAttributes: CTFetchAttrEnvelope | CTFetchAttrBodyStructure] </code></pre> <p>should populate the information about the attachments.</p> <p>When fetching a message from IMAP, the command will specify exactly what information it wants.</p> <p>you can see what is being fetched by enabling MailCore Logging as follows:</p> <pre><code>MailcoreEnableLogging(); [core_folder messagesFromSequenceNumber:from to:to withFetchAttributes: CTFetchAttrEnvelope | CTFetchAttrBodyStructure]; MailcoreDisableLogging(); </code></pre> <p>You will see commands of the format</p> <pre><code>&lt;command number&gt; &lt;UID&gt; &lt;Command&gt; (&lt;requested structure&gt;) </code></pre> <p>I imagine you will see something like this:</p> <pre><code>1 UID FETCH (ENVELOPE) </code></pre> <p>You should ensure that inside the () either BODY or BODY[2] or RFC822 as these will contain information about attachments.</p> <p>When you see what is actually being fetched you can <a href="http://tools.ietf.org/html/rfc3501#section-6.4.5" rel="nofollow">read the RFC</a>, if you are dealing with mailcore and IMAP then it is well worth the investment in time.</p> <p>2)Failing that, perhaps your CTCoreAccount and/or CTCoreFolder are not connected, thus preventing the CTCoreMessage from having a valid mailimapsession and being unable to download the attachment information. If an attribute inside a CTCoreMessage is not available then libetpan should download it on request. The fact that is it not suggests that your account or folder may be not valid or connected.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload