Creates a new mail server using the given parameters.
| Name | Type | Description | Mode |
|---|---|---|---|
| protocol | String | the e-mail protocol [pop3, imap] | in |
| host | String | the host of the e-mail server | in |
| port | Int | the port of the e-mail server (optional) | in |
| user | String | the user account | in |
| passwd | String | the password | in |
| folder | String | the folder to be opened (Optional. Default: INBOX) | in |
| leaveMessages | Bool | if true, messages won't be removed from the server when they are read (optional. default false)) | in |