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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Developer
trivedirujuta
Posts: 436
Registered: ‎10-06-2009
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
Please use plain text.
Developer
simon_hain
Posts: 13,830
Registered: ‎07-29-2008
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
Please use plain text.
Developer
trivedirujuta
Posts: 436
Registered: ‎10-06-2009
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
Please use plain text.
Developer
simon_hain
Posts: 13,830
Registered: ‎07-29-2008
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
Please use plain text.