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
New Contributor
Posts: 9
Registered: ‎09-09-2010
My Device: BlackBerry Curve 8520

How to listen to an inbox folder and store in another folder

Hi everyone,

 

I'm trying to listen to an inbox folder from a specific email account, and catch all the incoming emails from a specific email address, and move it to my own created folder.

 

For example, I'm listening to the folder that keeps all my Gmail messages, and when an email from @example.com arrives, I would like to catch it, delete it from the Gmail folder and move it to my Example folder. And just then I'd like to notify that a new email has arrived.

 

Any idea of how to do this?

 

The idea of making this is to later open an application that gets the message information, and shows it to me in one of my app's screen.

 

Is the previous idea useful for what I want to do next?

 

Thanks in advance.

 

 

Developer
Posts: 384
Registered: ‎08-12-2008
My Device: 8700

Re: How to listen to an inbox folder and store in another folder

Implement 

FolderListener,

 

and grap Message to check if that message is what you want.

 

move that message to your own folder.

 

Regular Contributor
Posts: 73
Registered: ‎12-30-2011
My Device: All devices
My Carrier: RIM

Re: How to listen to an inbox folder and store in another folder

I want to do same thing please help me,

Thanks

Mohd Farhan