MailCore / mailcore2

MailCore 2 provide a simple and asynchronous API to work with e-mail protocols IMAP, POP and SMTP. The API has been redesigned from ground up.
Other
2.6k stars 624 forks source link

SMIME message #994

Open dungnguyen2703 opened 9 years ago

dungnguyen2703 commented 9 years ago

I'm writting a SMIME app in IOS I use mailcore2 library to fetch mail

This is message type I get when using "Show origin" option in web mail

Mime-version: 1.0 Content-Type: application/pkcs7-mime; smime-type=enveloped-data; name=smime.p7m Content-disposition: attachment; filename="smime.p7m" Content-transfer-encoding: base64

Receive from Mailcore

<mailcore::IMAPPart:0x7fb3114cb440 filename: smime.p7m mime type: application/PKCS7-MIME inline: 0

smime-type and name is attribute of content-type . These attributes are very important but I cannot get them even I try to get in mainpart of MCOImapmessage or in attachments

dinhvh commented 9 years ago

S/MIME workflow is not supported yet. If you have a patch to improve the support, let me know!

j-carvalho commented 8 years ago

Is this already supported somehow or has someone an example on how to achieve this using an additional library?

dinhvh commented 8 years ago

It's not supported yet. Feel free to make suggestion / pull request for an API and implementation.