A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

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



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 7th 08, 10:30 AM posted to microsoft.public.outlook.program_addins
[email protected]
external usenet poster
 
Posts: 5
Default How to determine if a sent item comes from a shared inbox folder

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
Ads
  #2  
Old November 7th 08, 04:10 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default How to determine if a sent item comes from a shared inbox folder

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


wrote in message
...
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

  #3  
Old November 8th 08, 12:19 PM posted to microsoft.public.outlook.program_addins
[email protected]
external usenet poster
 
Posts: 5
Default How to determine if a sent item comes from a shared inbox folder

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]"
wrote:
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

wrote in message

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


  #4  
Old November 10th 08, 04:18 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default How to determine if a sent item comes from a shared inbox folder

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


wrote in message
...
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

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
OL2007 - determine if shared calendar folder has been cached Tadwick Outlook and VBA 1 November 7th 08 10:03 AM
Determine the source from an item with VB.Script Oskar Vaia Outlook - Using Forms 1 August 14th 08 03:38 AM
Determine if an Item is New dch3 Outlook - Using Forms 1 July 26th 07 04:17 AM
Newbie question: How to copy an email item from inbox to a folder Marceepoo Outlook and VBA 1 November 1st 06 07:54 PM
Determine if a Folder contains a UserProperty Rog Add-ins for Outlook 3 April 10th 06 06:54 PM


All times are GMT +1. The time now is 08:22 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.