D
DPM
Hi,
I have developed an application which read mails from a user selected folder
of MS Outlook.
Following is a code sample.
loOutlookSession = CREATEOBJECT("OutLook.Application")
loNameSpace = loOutlookSession.GetNameSpace("MAPI")
loMailFolder = loNameSpace.PickFolder()
IF loMailFolder.DefaultItemType = 0
** This is a folder with mail items
ENDIF
This works fine as long as a mail folder is selected but if the user selects
a public folder it does not imports its mails as the public folder's
DefaultItemType property returns 6.
I noticed that these public folders could have items other than mails, such
as tasks, contacts, ect..
Therefore even if public folders are allowed to import mails from it, it
fails when there are non mail items in the public folder.
To avoid this could someone please advice how to identify a mail item from
the rest of the non mail items in the public folder.
I have developed an application which read mails from a user selected folder
of MS Outlook.
Following is a code sample.
loOutlookSession = CREATEOBJECT("OutLook.Application")
loNameSpace = loOutlookSession.GetNameSpace("MAPI")
loMailFolder = loNameSpace.PickFolder()
IF loMailFolder.DefaultItemType = 0
** This is a folder with mail items
ENDIF
This works fine as long as a mail folder is selected but if the user selects
a public folder it does not imports its mails as the public folder's
DefaultItemType property returns 6.
I noticed that these public folders could have items other than mails, such
as tasks, contacts, ect..
Therefore even if public folders are allowed to import mails from it, it
fails when there are non mail items in the public folder.
To avoid this could someone please advice how to identify a mail item from
the rest of the non mail items in the public folder.