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
Name | Description |
---|---|
Input | |
Connection Type | Specifies 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 Folder | Specifies 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. |
Specifies 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. | |
Host | Specifies the hostname or server address of the IMAP email server. String variables containing the server address. |
Password | Specifies 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. |
Port | Specifies 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 Name | The display name of the activity. A display name is automatically generated when you indicate a target. |
Optional | |
Delay | Specifies 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 Message | Outputs 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
- Drag and drop the "Move IMAP Mail Message" activity onto the workflow.
- Configure the properties by specifying the email, password, host, port, connection type, destination folder, and any optional delay.
- Optionally, configure the display name for the activity.
- 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.