Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved


Chapter 10 Mail Palette : Receive Mail

Receive Mail
Process Starter
The Receive Mail process starter polls a POP3 or IMAP mail server for new mail. When new mail is detected and retrieved, the Receive Mail process starter starts a new process for the process definition it resides in and passes the mail data to the next activity in the process flow.
Configuration
The Configuration tab has the following fields.
<hostName>:<portNumber>
For example, myMailServer.myCo.com:76
It has two options: Basic Authentication and OAuth 2.0.
If you select Basic Authentication, then the User Name and Password fields appear.
If you select OAuth 2.0, then the User Name and Access Token Value fields appear.
Note: You can obtain the field information for Access Token Value, User Name, and Password from a Service Provider.
Note: If you choose to delete mail, you should place a Checkpoint activity immediately after the Receive Mail process starter to ensure the message is not lost in the event of machine failure.
Alternatively, you can choose to leave this field unchecked, and then later in the process definition perform a checkpoint then use the Confirm activity to confirm the message. The Confirm activity will delete the message from the mail server.
Configure SSL Button
The Configure SSL button allows you to configure the SSL parameters when the transport supports SSL. Check SSL to display Configre SSl dialog. Provide values in the following fields to configure SSL.
See TIBCO Designer Palette Reference for more information.
Test Connection Button
The Test Connection button tests the connection to the specified mail server. You can use this button to ensure that your Receive Mail activity is properly configured to receive mail from the specified mail server. This button is only enabled when the Host, Username, and Password fields on the Configuration tab are populated.
Advanced
The Advanced tab contains the following fields:
The Receive Mail process starter uses the javax.mail API. This API assumes that the content type of the message is multipart/mixed. When the multipart subtype is not mixed (such as multipart/signed or multipart/alternative) or when another content type is used (for example application/*), the javax.mail API may not correctly parse the message. Checking this field allows you to send the raw message to a Java Code activity that uses the Java Activation framework to implement the appropriate handlers to process the message. For more information on how the Java Activation framework can be used for this purpose, please consult the API documentation for javax.activation and javax.mail.
You can also feed the binary message to the javax.mail.MimeMessage constructor in the form of a java.io.InputStream to construct a MimeMessage object. In that case, the default javax.mail API handler is used.
Note: Once written, the files created by using this option are not deleted automatically. You must manage the storage used by these files and delete them when they are no longer used.
Output Headers
Incoming messages may have custom headers. The Output Headers tab allows you to define a custom schema for the headers of the incoming mail messages. You can specify any standard header supported by the javax.mail package. For example, X-Mailer or X-Priority. Values of headers in the incoming message will populate the corresponding output headers of the same name that you have defined.
See Appendix A, Specifying Data Schema for a complete description of using the Output Headers tab.
Misc
The Misc tab contains the following fields:
See TIBCO ActiveMatrix BusinessWorks Process Design for more information about controlling the execution order of process instances and about XPath expressions.
Output
The output for the activity is the following.
This element contains the schema you defined on the Output Headers tab. You can specify custom headers that can be included in incoming mail messages.
You can specify any standard header supported by the javax.mail package. For example, X-Mailer or X-Priority. Values of headers in the incoming message will populate the corresponding output headers of the same name that you have defined.
See http://www.faqs.org/rfcs/rfc2045.html for more information about MIME headers and their syntax.
Note: When the content type is specified as "text/*" (for example, "text/xml"), the attachment content is expected to be in either the textContent output element or the file name storing the attachment is expected to be in the fileName output element. When the content type is anything other than "text/*", the attachment content is expected to be in either the binaryContent output element or the file name storing the attachment is expected to be in the fileName output element.

Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved