@ExperimentalSpi @ParametersAreNonnullByDefault public interface ServiceDeskEmailReplyMatcher
Implementations of this, will be included when CUSTOM Email Reply (comment) Stripping is enabled for Service Desk projects, and invoked initially on the text part of the email body, and additionally on the converted wiki markup version of the content, if this conversion is also enabled for Service Desk projects.
Modifier and Type | Method and Description |
---|---|
boolean |
shouldStripText(List<String> textBlock)
Evalute the current text block and return whether the message should be stripped from this point onwards.
|
boolean shouldStripText(@Nonnull List<String> textBlock)
A maximum of 5 lines of text will be provided at a time, until the end of the message, moving down 1 line at a time. For example:
First invocation
One thing to note is that the implementation should ideally handle the text and potential wiki markup versions of the message content, as while every effort is made to accurately line up a stripped text mail part with it's html mail part equivalent before performing the wiki markup conversion, this is not always possible. Hence, the requirement to support a second flow through the stripping matchers on the wiki markup.
textBlock
- contains up to 5 lines of textCopyright © 2019 Atlassian. All rights reserved.