I started developing an external program to process e-mail messages from the stores in Outlook, and save them in our web application.
Today, I have an Outlook add-in that do this processing, but I wanted to avoid doing this in the add-in, because sometimes Outlook hangs from 1 to 2 seconds.
In the external program, I'm stuck in a situation where a dialog box is prompted, asking for the credentials of a user store, because the user didn't cached his credentials. I want to know if there is a way that I can avoid this dialog box to be shown. Right now, the code that I'm working with is presented below.
RDOSession session = RedemptionLoader.new_RDOSession();
session.Logon();
RDOStore store = null;
for (int i = 1; i < session.Stores.Count; i++)
{
store = session.Stores[i];
store.OnNewMail += (entryID) => { MessageBox.Show(entryID); };
}