Skip to content

Removing info about attachments from email body #813

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

Closed
Augustyniak opened this issue Jul 31, 2014 · 3 comments
Closed

Removing info about attachments from email body #813

Augustyniak opened this issue Jul 31, 2014 · 3 comments

Comments

@Augustyniak
Copy link

Is there any way to remove info about attachments from email body?

I am using [MCOIMAPMessageRenderingOperation plainTextBodyRenderingOperationWithMessage:folder:stripWhitespace:] method to render my message as I don't want to download its attachments.

@Augustyniak Augustyniak changed the title Removing info about attachments from mail Removing info about attachments from email body Jul 31, 2014
@dinhvh
Copy link
Member

dinhvh commented Aug 1, 2014

I don't think that the attachments will be downloaded if you use that method.

@dinhvh dinhvh closed this as completed Aug 1, 2014
@Augustyniak
Copy link
Author

Yea but I don't know how to remove attachments' headers from message body when I use this methd. Can you tell me is this possible at all?

@dinhvh
Copy link
Member

dinhvh commented Aug 1, 2014

You need to use:
http://libmailcore.com/mailcore2/api/Classes/MCOIMAPMessage.html#//api/name/htmlRenderingWithFolder:delegate:

  • (NSString *)htmlRenderingWithFolder:(NSString *)folder delegate:(id)delegate

and customize your own rendering.

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

2 participants