Drop the components from the Palette onto the
workspace: cMail and cProcessor, respectively labelled as Receive_Mail and Mail_Body.
Link the components using a Row > Route connection.
Double-click cMail to open its Basic settings view in the Component tab.
In the Protocols list, select imaps.
In the Host field, type in the host name of
the imap server, imap.gmail.com in this use
case.
In the Port field, type in the port number,
993 in this use case.
In the UserName and Password fields, enter the login authentication credentials,
which are in the form of context variables in this example. For more information
about context variable setup, see Talend Studio User
Guide.
Keep the default setting of the ContentType
field, text/plain.
Double-click cProcessor to open its Basic settings view in the Component tab.
In the Code box, enter the code below to
print the mail body.