02-07-2010 03:07 AM
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?
02-09-2010 04:16 PM
I'm not sure what you are asking here. Can you elaborate?
02-10-2010 03:30 AM
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();