8000 Full Message body not downloaded correctly · Issue #115 · MailCore/MailCore · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000

Full Message body not downloaded correctly #115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
abhinavguptas opened this issue Jun 20, 2013 · 0 comments
Open

Full Message body not downloaded correctly #115

abhinavguptas opened this issue Jun 20, 2013 · 0 comments

Comments

@abhinavguptas
Copy link

I am downloading messages for a folder via this call

[folder messagesWithUIDs:uidIdxSet fetchAttributes:CTFetchAttrEnvelope|CTFetchAttrBodyStructure];

Problem is even though CTFetchAttrBodyStructure attribute is mentioned it doesn't fetches the text/html and text/plain body. Which slows down the message fetching and requires another trip to server to fetch the same. This happens when any of CTCoreMessage->body or CTCoreMessage->htmlBody here is the code in CTCoreMessage->_buildUpBodyText:result:

        if ([[mime.contentType lowercaseString] rangeOfString:@"text/plain"].location != NSNotFound) {
            BOOL success = [(CTMIME_TextPart *)mime fetchPart];

Is there anyway I can wrap all message download in one shot and it doesn't requires another round trips to server ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0