snipsco / Postal

A Swift framework for working with emails
MIT License
652 stars 81 forks source link

Asynchronous acquisition of attachments when fetchMessage .body #74

Closed owlems closed 6 years ago

owlems commented 7 years ago

我只想获取邮件 的主体内容 如果附件太大会加载很慢的问题. 可以改成手到的吗.

jeremiegirault commented 7 years ago

I used google translate:

I just want to get the main content of the message if the attachment is too big to load a very slow problem.

Would it be possible to use English for issue please ? It would be easier for us.

If I remember correctly, you are able to download the structure of the message first and choose the attachment you need afterwards. You don't need to download all attachments at once

owlems commented 7 years ago

When I use the structure can not get the contents of the message

My current problem is that there is a mail there is a 300MB attachment is loaded for a long time before you can display the contents of the message

I mean that the contents of the e-mail and attachments are separated

jeremiegirault commented 7 years ago

Hmm We may have encountered this issue in the past. @klefevre do you remember how we handled this use case ?

owlems commented 7 years ago

@jeremiegirault #24

Hi, I saw this.

wx20171008-220423 2x

I use the attachment to get the content after the data processing to use what? Can you give me a demo?

thank you very much

carping commented 7 years ago

@jeremiegirault
Hello, I've got this problem too. The problem of data parsing is not correct