View Single Post
  #4  
Old August 28th 09, 02:22 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Get folder path where an account stores messages

Like I said, an email account is not tied to a store (other than with
Exchange mailboxes). If you have an Exchange mailbox or even a public folder
you can get the email address for that store and if you have permissions you
can send using that account.

If you have POP3 accounts how could those be tied to a store? A PST file can
be opened exclusively by anyone with access to it with no limitations. So I
could open it in one profile that has 3 mail accounts and then in another
profile that has a different 3 accounts. How do you distinguish?

I think your design is fundamentally flawed due to this misunderstanding
about the relationships between mail stores, profiles and email accounts.
All you can do is get the accounts for that profile (Outlook session) and
then guess.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Kamran A" wrote in message
news
Hi Ken, thanks for the information.

My ultimate goal for this add-in is to automatically determine what
account
to send from for composing new mail based on the current folder selected.
This is a user experience feature missing from Outlook (that Thunderbird
does
automatically).

The only obstacle is getting the mail delivery location associated with an
email account (shown in the GUI). The add-in works fine if I hard code the
path-to-account information, but of course that is not ideal.

The other viable option is to match root folder names with account display
names and that is something I'd like to avoid.

Is there any way to do what I'm talking about?


Ads