MailCore how to delete a message

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?


First use:

- (BOOL)setFlags:(NSUInteger)flags forMessage:(CTCoreMessage *)msg;

to set the deleted flag


 - (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 message gets moved to [GMail]/Trash or actually deleted

Need Your Help

Issue posting variable with iPhone SDK

iphone arrays variables sdk nsstring

I am encountering an issue while posting a variable with Xcode:

JPA Relationships

java jpa entity-relationship

If you have a relationship like this :