Skip to main content

Move IMAP Mail Message

AutomatR.Mail.MoveImapMailMessage

The "Move IMAP Mail Message" activity in AutomatR is designed to facilitate the relocation of an IMAP mail message from one location to another within an email account. This activity enhances email management capabilities in workflows, providing the flexibility to organize and manage messages efficiently.

Properties

NameDescription
Input
Connection TypeSpecifies the type of connection established for the IMAP mail message movement. It defines the protocol and method used to connect to the mail server, such as SSL/TLS, STARTTLS, or plain text. SecureSocketOptions enum values.
Destination FolderSpecifies the specific folder or location to which the IMAP mail message will be moved. It represents the target folder where the message will be transferred within the email account or mailbox. String variables containing the folder name.
EmailSpecifies the IMAP mail message that is being moved. It represents the specific email or message targeted for relocation within the email system, typically identified by its unique identifier or metadata. String variables containing the email identifier or metadata.
HostSpecifies the hostname or server address of the IMAP email server. String variables containing the server address.
PasswordSpecifies the security key that allows the user or application to establish a secure connection with the email server and perform actions such as moving the mail message. String variables containing the password.
PortSpecifies the numerical value that directs the move operation of the IMAP mail message to the correct port on the server. Integer variables containing the port number.
Misc
Display NameThe display name of the activity. A display name is automatically generated when you indicate a target.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Move IMAP Mail Message" activity. This optional delay can help handle synchronization issues. Integer variables containing the delay duration (e.g., 5 seconds).
Output
Mail MessageOutputs the specific email message within the IMAP mailbox that is targeted for movement. Variables of type System.Net.Mail.MailMessage to store the email message.

How to Use

  1. Drag and drop the "Move IMAP Mail Message" activity onto the workflow.
  2. Configure the properties by specifying the email, password, host, port, connection type, destination folder, and any optional delay.
  3. Optionally, configure the display name for the activity.
  4. Execute the workflow to move the specified IMAP mail message to the designated folder.

Example

Consider an example where the "Move IMAP Mail Message" activity is used to move an email with the subject "Important Document" from the inbox to the "Archived" folder:

Move IMAP Mail Message:
Display Name: "Move Important Document"
Email: "user@example.com"
Password: "securepassword"
Host: "imap.example.com"
Port: 993
Connection Type: SecureSocketOptions.SslOnConnect
Destination Folder: "Archived"
Mail Message: movedMail

In this example, the activity connects to the IMAP server, authenticates the user, and moves the email with the subject "Important Document" to the "Archived" folder. The moved email message is stored in the movedMail variable for further workflow processing.