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
Developer
CMY
Posts: 961
Registered: 02-10-2009
My Carrier: Verizon

Listening for Incoming email on BES......

Currently I have an app that allows users to block incoming email messages. Currently, I get the email address that received the message using the name of the store. I do this incase an email is sent to two accounts that are on the device, but the user only want to block one of the accounts (If I were to use the "TO" header then it would match on both accounts). When you are on a BES and the name of your email account does not match the email address (I don't know if this is also possible on BIS) does the name of the store coincide with the email address or the name of the account?

Please use plain text.
Administrator
MSohm
Posts: 11,465
Registered: 07-09-2008
My Carrier: Bell

Re: Listening for Incoming email on BES......

I'm not sure what you are asking here.  Can you elaborate?

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Found a bug? Report it using the Issue Tracker
Please use plain text.
Developer
simon_hain
Posts: 10,780
Registered: 07-29-2008
My Carrier: O2 Germany

Re: Listening for Incoming email on BES......

you can get the store of a certain mail address by parsing the servicerecords of the servicebook and checking their mail addresses:

 Store store = Session.getInstance(new ServiceConfiguration(sr[i])).getStore();

----------------------------------------------------------
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.

peter_strange wrote:
"This process should happen traumatically for you in both JDE and Eclipse."
Please use plain text.