PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Returns the list of folders:
  • for an IMAP session.
  • WINDEVWEBDEV - Server codeWindows Mobile found in the Outlook messaging software.
    Reminder: This function cannot be used to list the folders found in the Outlook Express messaging software.
Versions 17 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Versions 22 and later
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
New in version 22
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
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 +...
WINDEVWEBDEV - Server codeWindows Mobile
// Start the session
SessionID = EmailStartOutlookSession("MyProfile")
...
// List of folders
FolderList = EmailListFolder(SessionID)
// FolderList contains for example:
// "Personal folders" + CR + ...
// "Personal folders\Inbox" + CR + ...
// "Personal folders\Inbox\Work" + CR + ...
// "Personal folders\Inbox\Personal" + CR +...
Syntax
<Result> = EmailListFolder(<Session> [, <Option>])
<Result>: Character string
List of folders. The different folders are separated by CR characters (Carriage Return). The format of the result depends on the constant used:
LstFolderNormal
(Default value)
<Name of Folder1> + CR + <Name of Folder2> + CR +...
LstFolderAll<Name of Folder1> + CR + <Name of Folder2> + CR +...
LstFolderSorted<Name of Folder1> + CR + <Name of Folder2> + CR +...
LstFolderType<Name of Folder1> + TAB + "Type of Folder1> + CR + <Name of Folder2> + TAB + "Type of Folder2> + CR +...
Where:
<Name of FolderX>: Full name of the folder. For example: "Personal folders\Inbox\Work".
<Type of FolderX>: Type of listed folder. This parameter can correspond to:
  • folderDraft: Folder for the drafts
  • folderContact: Folder for the contacts and for the groups of contacts
  • folderRecycleBin: Folder for the deleted elements
  • folderOutbox: Folders for the emails that will be sent
  • folderSentEmail: Folder for the outgoing emails
  • folderGeneric: Generic folder (folder created by the users)
  • folderLog: Folder for the logs
  • folderNote: Folder for the notes
  • folderPersonal: Root of the "Personal folders" folder
  • folderInbox: Folder for the incoming emails
  • folderAppointment: Folder for the appointments
  • folderTask: Folder for the tasks
The ErrorOccurred variable is set to True if an error occurs. To find out the error details, use ErrorInfo associated with the errMessage constant.
<Session>: Character string, integer, or emailOutlookSession or emailIMAPSession variable
Identifier of current email session. This identifier can be:
<Option>: Optional Integer constant (or combination of constants)
Indicates:
  • the type of list to perform:
    LstFolderNormalList of folders containing emails only ("In-box", "Elements sent", ...).
    LstFolderAllList of all folders.
  • the sort mode of the list:
    LstFolderSortedList sorted in alphabetical order.
  • the display of the folder type:
    LstFolderTypeReturns the type and the name of the folders.
By default, all the folders containing emails are listed. This list is not sorted in alphabetical order and it contains the name of each folder only.
Remarks
WINDEVWEBDEV - Server codeWindows Mobile To handle:
Components
WINDEVWEBDEV - Server codeReports and Queries wd230com.dll
Windows Mobile wp230com.dll
Linux wd230com.so
Android wd230android.jar
Minimum required version
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment