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
EmailCopy (Function)
In French: EmailCopie
Copies an email found in a directory to another directory of an IMAP server.
Note: This function is not available for the POP3, Outlook and Notes sessions.
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.
Example
MyEmail is Email
MySession is EmailIMAPSession
...
// Start the session
IF EmailStartSession(MySession) = True THEN
// Read the first email
IF EmailReadFirst(MySession, MyEmail) = True THEN
// Copies the email into another folder
EmailCopy(MySession, MyEmail, "Inbox/Read")
END
EmailCloseSession(MySession)
END
Syntax

Copying an email found in an Email variable Hide the details

<Result> = EmailCopy(<Email> , <Documentation>)
<Result>: Boolean
  • True if the copy was performed,
  • False otherwise.
<Email>: Email variable
Name of the Email variable corresponding to the email to copy. This email is associated with an IMAP session.
<Documentation>: Character string (with quotes)
Destination folder of the email. This folder must exist. The list of folders is returned by EmailListFolder.

Copying an email found in an Email variable while specifying the IMAP session Hide the details

<Result> = EmailCopy(<Session> , <Email> , <Documentation>)
<Result>: Boolean
  • True if the copy was performed,
  • False otherwise.
<Session>: emailIMAPSession variable
Name of the emailIMAPSession session corresponding to the session to which the email belongs.
<Email>: Email variable
Name of the Email variable corresponding to the email to copy.
<Documentation>: Character string (with quotes)
Destination folder of the email. This folder must exist. The list of folders is returned by EmailListFolder.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230com.dll
Linux wd230com.so
Android wd230android.jar
Minimum required version
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment