com.atlassian.jira.mail.MailThreadManager |
Known Indirect Subclasses |
This interface is deprecated.
mail handlers no longer need to register processed email with this class, JIRA no longer relies on this to prevent duplicate issue being created from one email.
Clients of @PublicApi
can expect
that programs compiled against a given version will remain binary compatible with later versions of the
@PublicApi
as per each product's API policy as long as the client does not implement/extend
@PublicApi
interfaces or classes (refer to each product's API policy for the exact
guarantee---usually binary compatibility is guaranteed at least across minor versions).
@PublicApi
interfaces and classes are not designed to be implemented or extended by clients,
we may perform certain types of binary-incompatible changes to these classes and interfaces, but these will not
affect well-behaved clients that do not extend/implement these types (in general, only classes and interfaces
annotated with @PublicSpi
are safe to extend/implement).
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
MailThreadManager.MailAction | Indicates an action in response to an incoming email. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Looks for an issue associated with the given message by inspecting the "Message-ID" header of the message.
| |||||||||||
Looks for an issue associated with the given message by inspecting the "In-Reply-To" header of the message.
| |||||||||||
Removes rows from NotificationInstance table associated with the given issue.
| |||||||||||
Remembers that given messageId has been used to either create or comment on an Issue.
| |||||||||||
Thread the given email which is related to the given issue.
|
Looks for an issue associated with the given message by inspecting the "Message-ID" header of the message.
messageId | Message-ID to be checked |
---|
Looks for an issue associated with the given message by inspecting the "In-Reply-To" header of the message.
Notifications sent from JIRA have a special form that allows us to parse out the Issue ID. We also remember the incoming Message-IDs so we can tell if another recipient replies to that message.
message | message to analyse |
---|
Removes rows from NotificationInstance table associated with the given issue. Used when we delete an issue.
issueId | the issue |
---|
Remembers that given messageId has been used to either create or comment on an Issue.
This creates an entry in "NotificationInstance" table that will only be removed in two cases
removeAssociatedEntries(Long)
messageId | The incoming Message-ID |
---|---|
senderAddress | The sender |
issue | the issue that was affected (created or commented) |
action | Issue created or Issue commented |
Thread the given email which is related to the given issue.
the email to be sent | |
issue | the issue that the email is about |