I have a script to pull emails from a certain folder, however the number of emails being returned in R does not match how many emails are in the folder. I think Outlook or R is truncating the folder at a certain max size of items.
Is there any way around this?
OutApp <- COMCreate("Outlook.Application")
outlookNameSpace = OutApp$GetNameSpace("MAPI")
fld <- outlookNameSpace$GetDefaultFolder(6)
fld = fld$folders(fldr)
Cnt = fld$Items()$Count()
emails <- fld$items
emails()$Count()
## 319 vs 321
If I open that folder in Outlook I can see it's truncated:
Is there anyway to increase this view in Outlook?