Group:  Microsoft Outlook » microsoft.public.outlook.program_addins
Thread: How to determine if a sent item comes from a shared inbox folder

Geek News

How to determine if a sent item comes from a shared inbox folder
mail[ at ]marc-drexler.de 11/7/2008 9:30:00 AM
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
Re: How to determine if a sent item comes from a shared inbox folder
"Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> 11/7/2008 3:10:06 PM
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.

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


<mail[ at ]marc-drexler.de> wrote in message
news:45a83434-0a0e-444d-af66-49db2ea4b882[ at ]w1g2000prk.googlegroups.com...
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

Re: How to determine if a sent item comes from a shared inbox folder
mail[ at ]marc-drexler.de 11/8/2008 11:19:14 AM
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



On 7 Nov., 16:10, "Ken Slovak - [MVP - Outlook]" <kenslo...[ at ]mvps.org>
wrote:
[Quoted Text]
> 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.
>
> --
> 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
>
> <m...[ at ]marc-drexler.de> wrote in message
>
> news:45a83434-0a0e-444d-af66-49db2ea4b882[ at ]w1g2000prk.googlegroups.com...
> 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

Re: How to determine if a sent item comes from a shared inbox folder
"Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> 11/10/2008 3:18:07 PM
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.

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


<mail[ at ]marc-drexler.de> wrote in message
news:4c93a3c5-61ba-4e53-a14a-b5b1f1e83429[ at ]s1g2000prg.googlegroups.com...
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

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net