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.
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 image was copied,
- False otherwise.
<Email>: Email variable
Name of the Email variable that corresponds 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 image was copied,
- 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 that corresponds 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.