Interface ServiceDeskEmailAttachmentMatcher


@ParametersAreNonnullByDefault @ReturnValuesAreNonnullByDefault public interface ServiceDeskEmailAttachmentMatcher
The matcher to implement, in order to participate in the Incoming Email attachment stripping process.

Implementations of this, will be invoked when attachments are included in any email that creates a new issue or comments on an existing issue.

How to determine if an attachment should be stripped, and therefore not added to the issue is left up to the implementations to determine.

Since:
v3.10.0
  • Method Details

    • shouldStripAttachment

      boolean shouldStripAttachment(ServiceDeskEmailAttachmentMatcher.Attachment attachment)
      Given an ServiceDeskEmailAttachmentMatcher.Attachment return whether it should be stripped (ie. removed) from further processing, and therefore not added to the issue.

      If there are multiple implementations of this interface, than when True is returned from one, additional implementations will no longer be invoked.

      Parameters:
      attachment - The attachment to check whether should be stripped from the issue.
      Returns:
      True if the attachment should not be added to the issue, or False to defer a decision and let other implementations decide