Reading received emails
A separate input system is available for each interface or protocol for reading in received emails. The following properties apply to all input systems.
Property | Description |
|---|---|
.SearchFilter | Filter string for selecting the desired emails (optional) The filters are applied directly to the mail server. This property only applies to the interfaces/protocols Graph, EWS, IMAP and Gmail. In each case, use the specific syntax of the interface or protocol for the filter:
For the Graph and EWS interfaces, the program uses the "Category" email property to set the current processing status and select new emails that do not yet have a status value. This fixed internal filter is implicitly combined with the value configured via |
.SubjectFilter .BodyFilter .HasAttachFilter | Filters to select emails for further processing based on the subject, the message body, or the existence of a file attachment with a specific name (optional) These filters are subsequently applied to the list of existing emails returned by the mail server. Depending on the specific filter criterion and the mail interface, the complete mail object must be retrieved from the server in order to determine the relevant filter values. The use of these client-side filters is generally less performant and generates more data traffic than the server-side filters. Syntax: see Name Filter Syntax. |
.FileFilter .IgnoreInlineAttach | File name filter to limit the file attachments extracted from the found emails (optional) The Boolean value |
.AttachMailBody .AttachMailItem | Boolean values indicating whether the message text as a whole and the email object as a whole are attached to the xSuite Interface document as additional file attachments (default value: The first attachment is given the base name |
.SupportsMove | Boolean value determining whether the server supports the optional MOVE command when using the IMAP protocol (default value: If the MOVE command is supported, emails will be moved directly to another folder. If this is not the case, the action will be performed indirectly. The email in question will be copied to the destination folder and then deleted from the source folder. |
.PoBox[].Id .PoBox[].User(*) .PoBox[].Password(*§) .PoBox[].UserMailForAutoUrl .PoBox[].InputFolder(*) .PoBox[].BackupFolder(%) .PoBox[].ErrorFolder(%) | Definition of the properties for access to a single email folder of a specific user The The Under
At the Exchange interfaces, the emails remain in the inbox folder during xSuite Interface's ongoing processing. The Category property of these emails has the status value "Working." Once processed, the emails are moved to the backup folder. If an error occurs while the emails are being read in, the emails will remain in the inbox folder with the status "Error." If a processing error does not occur until later, the emails will be moved to the "Error" folder. With the IMAP protocol, status values cannot be written to the email objects. In contrast to the standard behavior of the program, emails are therefore moved to the backup folder immediately after being read in so that they are not read repeatedly from the inbox folder. If no backup folder is defined, emails are deleted immediately after they have been successfully read. With POP3, as it does not offer any folder structures, emails are always deleted directly. The definition of an error folder is not useful in this constellation, as an email that has already been deleted cannot be moved any further. With Gmail, the processing logic is analogous to the IMAP protocol, but the emails are not stored in folders; instead, they are provided with the configured folder names as labels. For the two Exchange interfaces, specify the display name of a folder (e.g., In addition to the standard reading of a user's personal messages, the Exchange interfaces also allow access to other users' shared folders. To enable shared access, prefix the folder name with When using the Graph API in conjunction with app-only authentication (see property |
The index data extracted from an email is added to the xSuite Interface document as an artificially generated file attachment index.json. With this, the index data can be read in the processing step via an index data reader of type "Json."
The following properties are included in the JSON object and must be specified as .InputName in the index data reader field mappings:
PoBoxId: value of the.PoBox[].IdpropertyId: ID of the email object assigned by the mail serverMessageId: global message ID of the messageSize: total size of the message in bytesFrom: sender addressTo,CcandBcc: primary recipient address, CC recipient address and BCC recipient address respectivelyCreated,SentandReceived: date of creation, date of dispatch, date of receiptSubject: subject textBodyText: message textBodyHtml: message text in HTML format, if the email was sent in this formatNotice
For HTML mails, the message text is read as plaintext whenever possible. Depending on the mail interface used, this fills either only the
BodyTextproperty or both theBodyTextand theBodyHtmlproperties.