PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
EmailCopy (Function)
In french: EmailCopie
Copies an email found in a directory to another directory of an IMAP server.
Remark: This function is not available for the POP3, Outlook and Notes sessions.
Example
MonEmail is Email
MaSession is emailIMAPSession
...
// Ouverture de la session
IF EmailStartSession(MaSession) = True THEN
// Lecture du premier email
IF EmailReadFirst(MaSession, MonEmail) = True THEN
// Copie l'email dans un autre dossier
EmailCopy(MaSession, MonEmail, "Inbox/Lu")
END
EmailCloseSession(MaSession)
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 Variable of type Email corresponding to the Email to be copied. This email is associated with an IMAP session.
<Documentation>: Character string
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 Variable of type Email corresponding to the Email to be copied.
<Documentation>: Character string
Destination folder of the email. This folder must exist. The list of folders is returned by EmailListFolder.
Component: wd270com.dll
Minimum version required
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment