How to determine if a sent item comes from a shared inbox folder

M

mail

Hi,

If you got mailboxes shared between people over the network and after
you’ve granted the users send-as, it all works great except the fact
that the messages the users sends from the shared mailbox, ends up in
the users own (default) Sent Items folder. I have just created a tiny
outlook Add-In that moves sent items to a specific folder (shared sent
items folder in my case).

Every time a new item is being added to my sent items folder I have to
check for the sender name to determine if this item has been sent from
a shared inbox folder or not... at the moment this is hard coded and
configurable. Is there a better (more dynamically) way of how to find
out if a sent item comes from a shared inbox folder?

Any help would be great

Thanks!
Marc
 
K

Ken Slovak - [MVP - Outlook]

If the sender name and/or email address doesn't match what it normally is in
your Sent Items folder then it meets your criteria. I think that's about the
best way to do your tests.




Hi,

If you got mailboxes shared between people over the network and after
you’ve granted the users send-as, it all works great except the fact
that the messages the users sends from the shared mailbox, ends up in
the users own (default) Sent Items folder. I have just created a tiny
outlook Add-In that moves sent items to a specific folder (shared sent
items folder in my case).

Every time a new item is being added to my sent items folder I have to
check for the sender name to determine if this item has been sent from
a shared inbox folder or not... at the moment this is hard coded and
configurable. Is there a better (more dynamically) way of how to find
out if a sent item comes from a shared inbox folder?

Any help would be great

Thanks!
Marc
 
M

mail

Hi Ken,

This is correct. But if I got more than one shared mailboxes, I would
have to iterate through every mailbox to check if it's a shared
mailbox to identify the correct sent items folder to move my sent mail
item to.
Also how can I determine which sender name belongs to a mailbox?

Thanks
Marc
 
K

Ken Slovak - [MVP - Outlook]

There are no explicit properties to tell you if a mailbox is shared or your
own mailbox unless you are using Outlook 2007. In that case you can use the
Store.ExchangeStoreType and your primary mailbox would be
OlExchangeStoreType.olPrimaryExchangeMailbox. Shared mailboxes would be
OlExchangeStoreType.olExchangeMailbox. You iterate the Stores collection and
check the type of each.

If you use Redemption (www.dimastr.com/redemption) you can use the
RDOStore.StoreKind property. In that case you get
TxStoreKind.skPrimaryExchangeMailbox for the primary mailbox and
TxStoreKind.skDelegateExchangeMailbox for shared mailboxes.

For the sender name the easiest way is to parse out the name from the
mailbox name.




Hi Ken,

This is correct. But if I got more than one shared mailboxes, I would
have to iterate through every mailbox to check if it's a shared
mailbox to identify the correct sent items folder to move my sent mail
item to.
Also how can I determine which sender name belongs to a mailbox?

Thanks
Marc
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top