Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Regular Contributor
Posts: 77
Registered: ‎02-17-2010
My Device: Not Specified
Accepted Solution

deleting mails

hi..

 

can anyone help me regarding this.

i need to delete mails after listening to it.

i.e first i need to listen to incoming mails,then extract its subject and sender address and delete the mails.

am able to perform first two operations.but deleting am not getting any idea.i searched the forum too.

 

 

Developer
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: deleting mails

You delete the message by asking it's Folder to delete it.

 

See Folder.deleteMessage() in the javadocs.

 

Regular Contributor
Posts: 77
Registered: ‎02-17-2010
My Device: Not Specified

Re: deleting mails

ya.. now its getting deteted 

i used this 

public boolean deleteMessage(Message msg,
                             boolean forceDeleteSaved)