Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The IMAP transport handler generates stream elements of type Tuple with a fixed output schema:

IndexAttribute nameData typeDescription
0FromStringThe senders email address
1ToString ListThe
receiver
receivers'
s
email
address
addresses
2CCString ListThe list of copy receiver email addresses
3BCCString ListThe list of blind copy reveiver email addresses
4ReplyToStringThe reply to email address
5SubjectStringThe subject line of the email
6SendDateDateThe data when the email was sent
7FlagDeletedBooleanSee https://docs.oracle.com/javaee/6/api/javax/mail/Flags.Flag.html
8FlagAnsweredBoolean
9FlagDraftBoolean
10FlagFlaggedBoolean
11FlagRecentBoolean
12FlagSeenBoolean
13FlagUserBoolean
14Content

Depending on the value of option mimetypehandler:

String oder OptionMap

The content of the email. Depending of the emails' MIME type, it can consist of multiple body parts and/or attached files.


Example

PQL

Code Block
themeEclipse
titleIMAP Transport Handler
linenumberstrue
output = ACCESS({source='ImapSource',
wrapper='GenericPull',
transport='IMAP',
protocol='None',
dataHandler='Tuple',
options=[
 ['host','imap.example.com'],
 ['folder','INBOX'],
 ['keep','true'],
 ['markasread','false'],
 ['unreadonly','false'],
 ['readcontent', 'true'],
 ['username','Alice'],
 ['mimetypehandler', 'objectmap'],
 ['password','***']]
})