Quote:
Originally Posted by gmayor
You would need to identify the Store that contains the inbox e.g.
Code:
Dim oFolder As Folder
Set oFolder = Session.Stores.Item("Name of Store").GetDefaultFolder(olFolderInbox)
|
Thanks,
Have struggled with this, but this was very helpful.
So "Name of Store" is the specific email address I wish to monitor. From that I can get the incoming msgs (item) in the inbox.
A related question - Users will sometimes move a new msg from inbox to specially named folders like PastDueBill, Personal, etc. If they do so before I am able to pick up the new msgs in inbox, could you help me on the syntax for checking each of these other custom mailboxes they created? Also, how would I get the names of these other mailboxes they are using mostly for storage?
Again, many thanks for clearing up this Store concept for me.
Mark