mailcore

Building Mailcore2 on linux

ε祈祈猫儿з 提交于 2021-02-08 06:53:23
问题 I'm trying to build the mailcore2 library on linux (Ubuntu 18.04) but having a hard time. (Mostly) following the directions on their repo here: https://github.com/MailCore/mailcore2/blob/master/build-linux/README.md So first I install dependencies (that all goes fine): sudo apt-get install libctemplate-dev libicu-dev libsasl2-dev libtidy-dev \ uuid-dev libxml2-dev libglib2.0-dev autoconf automake libtool cmake Then it instructs how to build libetpan, but I'm using the updated instructions

iOS-Is there any method available for fetching CTCoreMessage with specific key words from CTCoreAccount or CTCoreFolder in Mailcore library?

*爱你&永不变心* 提交于 2020-01-17 04:06:07
问题 I am developing one IOS Application in which i am integrate Gmail via Mailcore library, Now I want add search functionality for Inbox for which user can search their Email Subject and Body. But i am not aware how to implement it. Can anyone help me out? Is there any sample source code for this in Mailcore? 回答1: Use this it has search functionality http://code.google.com/p/remail-iphone/ 回答2: MailCore api I've developed same kind of app and have use it. They provide access to IMAP and SMTP

MailCore how to delete a message

旧城冷巷雨未停 提交于 2020-01-03 06:26:10
问题 When using MailCore, how do I go about deleting a message? I understand that I set an IMAP deleted flag for a CTCoreMessage but does that actually cause a message to be deleted by the server? Or is there another way to do this? 回答1: First use: - (BOOL)setFlags:(NSUInteger)flags forMessage:(CTCoreMessage *)msg; to set the deleted flag then: - (BOOL)expunge; These are both methods in CTCoreFolder. The tricky part comes from determining if the account is GMail and if the user would rather the

Sending Mailcore2 Plain Emails in Swift

夙愿已清 提交于 2019-12-29 04:04:06
问题 I've recently incorporated MailCore2 into my Objective-C project, and it has worked perfectly. Now, I am in the process of transitioning the code within the app to Swift. I have successfully imported the MailCore2 API into my swift project, but I see no documentation (Google search, libmailcore.com, github) on how to turn the following working Objective-C code into Swift Code: MCOSMTPSession *smtpSession = [[MCOSMTPSession alloc] init]; smtpSession.hostname = @"smtp.gmail.com"; smtpSession

Fetch an email body in mailcore2 OSX with swift

一笑奈何 提交于 2019-12-12 03:58:38
问题 I try use this class: MCOIMAPFetchContentOperation for fetch body mail. But i don't know how invoke her in swift and i don't know the arguments who are necessary. Description of the class is: "This class implements an operation to fetch the content of a message. It can be a part or a full message." Can you help me please ! 回答1: Your question is a little vague but I assume to mean something like this : func loadMsg(msg: MCOIMAPMessage, folder: String) { let operation:

how to add an extra argument to a block

穿精又带淫゛_ 提交于 2019-12-09 03:58:23
问题 Mailcore has a cool method that downloads an attachment and accepts a block as a parameter to return download progress: - (CTCoreAttachment *)fetchFullAttachmentWithProgress:(CTProgressBlock)block; where CTProgressBlock is defined as typedef void (^CTProgressBlock)(size_t curr, size_t max); so typically I would use it like so: //AttachmentDownloader.m int fileNum = x; // explained later CTCoreAttachment* fullAttachment = [attachment fetchFullAttachmentWithProgress:^(size_t curr, size_t max) {

how to add an extra argument to a block

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-02 11:49:59
Mailcore has a cool method that downloads an attachment and accepts a block as a parameter to return download progress: - (CTCoreAttachment *)fetchFullAttachmentWithProgress:(CTProgressBlock)block; where CTProgressBlock is defined as typedef void (^CTProgressBlock)(size_t curr, size_t max); so typically I would use it like so: //AttachmentDownloader.m int fileNum = x; // explained later CTCoreAttachment* fullAttachment = [attachment fetchFullAttachmentWithProgress:^(size_t curr, size_t max) { NSLog(@"::: this is curr: %zu", curr); NSLog(@"::: this is max: %zu\n\n", max); }]; the problem is

how to fetch an email body in mailcore2

大兔子大兔子 提交于 2019-11-29 22:41:25
问题 I've trying to migrate from mailcore to mailcore2. Previously in mailcore, fetching a body structure was as simple as [msg fetchBodyStructure] where msg is a CTCoreMessage object. With mailcore2, things seem to be more complex. In MCOIMAPSession's documentation for fetching a message body, we have: MCOIMAPFetchContentOperation * op = [session fetchMessageAttachmentByUIDOperationWithFolder:@"INBOX" uid:[message uid] partID:"1.2" encoding:[part encoding]]; [op start:^(NSError * error, NSData *

Sending Mailcore2 Plain Emails in Swift

落花浮王杯 提交于 2019-11-28 08:35:02
I've recently incorporated MailCore2 into my Objective-C project, and it has worked perfectly. Now, I am in the process of transitioning the code within the app to Swift. I have successfully imported the MailCore2 API into my swift project, but I see no documentation (Google search, libmailcore.com, github) on how to turn the following working Objective-C code into Swift Code: MCOSMTPSession *smtpSession = [[MCOSMTPSession alloc] init]; smtpSession.hostname = @"smtp.gmail.com"; smtpSession.port = 465; smtpSession.username = @"matt@gmail.com"; smtpSession.password = @"password"; smtpSession