I wrote a program several years ago that reads the Outlook inbox and processes the emails. Using Outlook 2010, I am downloading email from a gmail account. Instead of placing the email in the main INBOX, the email is placed in an inbox under the gmail account. (I actually prefer the emails in a separate inbox.)
For instance if the gmail account is abc@gmail.com I see abc@gmail.com on the left sidebar of Outlook with it's own inbox and all of the email I want to access.
How can I programmatically get to these emails?
I tried the code below, but it only display the main "inbox" and "deleted" folders.
&& SAMPLE CODE
Local loapp, lospace
loapp = Createobject('Outlook.Application')
lospace = loapp.GetNameSpace('MAPI')
FOR i = 1 TO lospace.Folders(1).Folders.Count
WAIT WINDOW Upper(lospace.Folders(1).Folders(i).Name)
endfor
For instance if the gmail account is abc@gmail.com I see abc@gmail.com on the left sidebar of Outlook with it's own inbox and all of the email I want to access.
How can I programmatically get to these emails?
I tried the code below, but it only display the main "inbox" and "deleted" folders.
&& SAMPLE CODE
Local loapp, lospace
loapp = Createobject('Outlook.Application')
lospace = loapp.GetNameSpace('MAPI')
FOR i = 1 TO lospace.Folders(1).Folders.Count
WAIT WINDOW Upper(lospace.Folders(1).Folders(i).Name)
endfor