@ExperimentalSpi @ParametersAreNonnullByDefault @ReturnValuesAreNonnullByDefault public interface ServiceDeskEmailAttachmentMatcher
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.
|Modifier and Type||Interface and Description|
A simple representation of a mail attachment after it has been extracted from a message.
A simple representation of a mail attachment's actual content, after it has been extracted from a message.
boolean shouldStripAttachment(ServiceDeskEmailAttachmentMatcher.Attachment attachment)
ServiceDeskEmailAttachmentMatcher.Attachmentreturn 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.
attachment- The attachment to check whether should be stripped from the issue.
Copyright © 2021 Atlassian. All rights reserved.