im_done_folder

Specifies the IMAP folder for successfully imported emails.

Member of namespace

Imail

Syntax

bool im_done_folder(string folder)

Parameters

folder
Type: string

Parameters

folder: Destination IMAP folder for successfully imported emails.

Returns

Always True.

Level

Batch level.

Details

When an email is processed and the attachment is imported, the email is moved to the folder name specified by this action. The folder is expected to be on the root level, the same level as the inbox folder in the mail account that is specified by the im_login action. If the folder exists in a subfolder, then use a forward slash to separate the folder names.

If this action is not called, the default value of Done is used.

Example:
im_done_folder("Imported")
im_problem_folder("Failed")                  

This example changes the default names of the Done and Problem folders and also requires the Imported and Failed folders to be on the same level as the Inbox folder.

im_done_folder("Inbox/Imported")
im_problem_folder("Inbox/Failed")

This example requires the folders to be a subfolder of the Inbox folder.