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
Developer
Posts: 528
Registered: ‎10-06-2009
My Device: 9800,BB Dev Alpha,z10 limited edition
My Carrier: Vodafone
Accepted Solution

Send Messages to custom folder

Hi,

I need to make an application which can save messages from the specific sender to specific folder.Is it possible?If yes then how to achieve this ?

 

I need guidance with some snippet or link .

 

Thanks,

 

 

Rujuta Trivedi
Developer
Posts: 16,998
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Send Messages to custom folder

you can list the existing folders using http://www.blackberry.com/developers/docs/7.1.0api/net/rim/blackberry/api/mail/Store.html#list() and copy or move the message there.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Developer
Posts: 528
Registered: ‎10-06-2009
My Device: 9800,BB Dev Alpha,z10 limited edition
My Carrier: Vodafone

Re: Send Messages to custom folder

Ok,I got the listing of folders.Now how to copy messages to folder?I need to copy messages in folder so that when persons delete the messages,one copy of that particular message should be there to see.Is the method appendmessages(message) is appropriate for my purpose?

 

Thanks

 

 

Rujuta Trivedi
Highlighted
Developer
Posts: 16,998
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Send Messages to custom folder

http://www.blackberry.com/developers/docs/7.1.0api/net/rim/blackberry/api/mail/Folder.html#deleteMes... deletes the message from folder 1, http://www.blackberry.com/developers/docs/7.1.0api/net/rim/blackberry/api/mail/Folder.html#appendMes... adds it to folder 2.

there is no move or copy method.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter