ios - MailCore how to delete a message -


when using mailcore, how go deleting message? understand set imap deleted flag ctcoremessage cause message deleted server? or there way this?

first use:

- (bool)setflags:(nsuinteger)flags formessage:(ctcoremessage *)msg; 

to set deleted flag

then:

 - (bool)expunge; 

these both methods in ctcorefolder.

the tricky part comes determining if account gmail , if user rather message gets moved [gmail]/trash or deleted


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

ruby - Nesting modules inside of a Rails eninge gem -

Eclipse formatter for java ending braces -