View Single Post
 
Old 10-27-2018, 12:48 PM
MarkAtTheBeach MarkAtTheBeach is offline Windows 10 Office 2016
Novice
 
Join Date: Oct 2018
Posts: 6
MarkAtTheBeach is on a distinguished road
Default

Quote:
Originally Posted by gmayor View Post
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
Reply With Quote