Welcome! Log In Create A New Profile

Advanced

EmailListFolder doesn't return folderType

Posted by Frank GÜNDEROTH 
Frank GÜNDEROTH
EmailListFolder doesn't return folderType
September 05, 2018 04:12PM
Hello,

I am using the EmailListFolder command with the option LstFolderType in an IMAP session but it doesn't returns me the folder types.
I checked this with several email providers but always the same result. Only the folder names are returned.
Does anyone have the same problem?

Regards
Frank
pao
Re: EmailListFolder doesn't return folderType
September 05, 2018 04:50PM
From my testing [WD22] it only works for OUTLOOK sessions not for IMAP.


with this code it works:
nOutlookSessionID is int=EmailStartOutlookSession("outlook")

IF nOutlookSessionID=0 THEN
Error("error in open",ErrorInfo())
RETURN
END
trace(EmailListFolder(nOutlookSessionID,LstFolderAll+LstFolderType))
EmailCloseSession(nOutlookSessionID)

With this one it doesn't:
IF NOT EmailStartIMAPSession("xxxxxx@gruposoft.com","*******", "**.**.**.**") THEN
Error("error in open",ErrorInfo())
RETURN
END
trace(EmailListFolder("xxxxxx@gruposoft.com",LstFolderAll+LstFolderType))
EmailCloseSession("xxxxxx@gruposoft.com")

Regards

Paulo Oliveira



Edited 1 time(s). Last edit at 09/05/2018 04:52PM by pao.
Frank Günderoth
Re: EmailListFolder doesn't return folderType
September 05, 2018 05:12PM
Hi Paulo,

yes thats the same experience as mine.
But the WinDev help says something else:
Quote

MySession is EmailIMAPSession
...
// List of folders
FolderList = EmailListFolder(MySession, LstFolderAll + LstFolderType)
// FolderList contains for example:
// "Personal folders" + TAB + folderPersonal + CR + ...
// "Personal folders\Inbox" + ...
// TAB + folderInbox + CR + ...
// "Personal folders\Inbox\Work" + ...
// TAB + folderGeneric + CR + ...
// "Personal folders\Inbox\Personal" + ...
// TAB + folderGeneric + CR +...
pao
Re: EmailListFolder doesn't return folderType
September 05, 2018 05:26PM
I have tested with IMAP using our email server, gmail ,hotmail and the behaviour is the same(no folder type).

Regards

Paulo Oliveira
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: