Mail Poller

Overview

This version is for Appian 22.3 and above. Cloud customers on a lower version of Appian that want to install this plugin should open a support case. Self-managed customers can find the latest jar for Appian 22.2 and lower version by downloading from the app market.

Enhancement to the plug-in to enable the selection of whether or not to include the email attachments as part of the EML document. Previously, the plug-in would create an EML document with the attachments stripped out. Our client needs to preserve the original e-mail as it was sent (for auditing purposes), so the EML must include the attachments as part of it. This update extends the functionality to allow the user to select whether they want an EML with the attachments removed (original functionality), an EML with attachments included, or both (2 EMLS of original email - one without the attachments included and one with the attachments included). Any e-mail attachments will continue to be saved separately. 

Key Features & Functionality

Takes all unread email from a mailbox and adds entries directly to a database table.The original email is saved as an EML based on three attachment type options

  1. EML with attachments removed
  2. EML with attachments included
  3. Both (2 EMLs of original email) - EML with attachments removed and EML with attachments included

Each email attachment is saved as its own document. The database tables store the Appian document ids, email recipients, subject and body (text and HTML)

Anonymous
  • Seems like the changes did not come through.

    The log4j lib is not included with the jar, so the plugin use the latest logging library in the base product. I'm not sure what you mean by configuring log4j properties, why do you need to do that?

    Do you want to submit a new version to the AppMarket here or are you creating a completely new plugin? If the latter, make sure the plugin key in appian-plugin.xml is also updated. If you want to incorporate your changes into this plugin, please send me the source code for review, but for starters the package names will need to be reverted.

  • Hi Mike,

    Our team has taken poller plugin version 1.1.7  and customised the plug-in code and also made the following changes -

    log4j Version was updated to 2.17.1
    Also, the code was refactored including package names. (com.<companyname>.integration.mail) 

    We are not aware how or where to configure log4j properties in Appian to match the log4j version. Can you please advise?

    We are using Appian 21.4 currently.  

  • ok. Thanks. The code is being customised to include some validations after reading the emails. 

  • Sure, the code is included in the jar. That said, what are you trying to do with these messages? There are only a few things that can be done in email.

  • Thanks for the quick update, Mike. Is it possible to customise that code?

  • You need to use the preconfigured values only - these are the activities programmed into the node's code.

  • , We observe that when passed to the smart-service parameters OnSuccess and OnFailure are from a constant or process variable, they are not received by the plug-in code. Only pre-configured values (Delete/ mark as read) visible in the value dropfown seem to be accepted. Can you please advise if there is a way to change this behaviour to accept other values from constants or are we required to use the pre-configured values only?   

  • Was IMAP disabled for the account? Microsoft has been announcing and delaying disabling basic auth for a few years, and I think it may have actually happened.

    Or IMAP was disabled at the org level and nobody told you.

    Either way, I would recommend switching to the MSGraph Poller to work with office 365. It's faster and provides the same functionality, with the the same data structure.

  • Hi Mike,

    Yes we have verified the credentials and they are working fine and we are able to login to outlook mailbox.

    Both Version - Version 1.1.6 and New verion with support to Jakarta library (Got installed via ticket on 22.2 version).

    We are getting below error -

    528 : UnattendedJavaActivityRequest] ERROR com.appiancs.mail.MailPollerSmartService - Error during mail polling

    javax.mail.AuthenticationFailedException: LOGIN failed.

    at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:661)