@PublicApi
public interface MailThreadManager
Modifier and Type | Interface and Description |
---|---|
static class |
MailThreadManager.MailAction
Indicates an action in response to an incoming email.
|
Modifier and Type | Field and Description |
---|---|
static String |
ISSUE_COMMENTED_FROM_EMAIL
Deprecated.
Use
MailThreadManager.MailAction.ISSUE_COMMENTED_FROM_EMAIL instead. Since v5.2. |
static String |
ISSUE_CREATED_FROM_EMAIL
Deprecated.
Use
MailThreadManager.MailAction.ISSUE_CREATED_FROM_EMAIL instead. Since v5.2. |
static String |
NOTIFICATION_ISSUE_ASSIGNED
Deprecated.
No longer used because we don't use store all outgoing notifications (see JRA-9979). Since v5.2.
|
static String |
NOTIFICATION_ISSUE_CLOSED
Deprecated.
No longer used because we don't use store all outgoing notifications (see JRA-9979). Since v5.2.
|
static String |
NOTIFICATION_ISSUE_COMMENT_EDITED
Deprecated.
No longer used because we don't use store all outgoing notifications (see JRA-9979). Since v5.2.
|
static String |
NOTIFICATION_ISSUE_COMMENTED
Deprecated.
No longer used because we don't use store all outgoing notifications (see JRA-9979). Since v5.2.
|
static String |
NOTIFICATION_ISSUE_CREATED
Deprecated.
No longer used because we don't use store all outgoing notifications (see JRA-9979). Since v5.2.
|
static String |
NOTIFICATION_ISSUE_DELETED
Deprecated.
No longer used because we don't use store all outgoing notifications (see JRA-9979). Since v5.2.
|
static String |
NOTIFICATION_ISSUE_GENERICEVENT
Deprecated.
No longer used because we don't use store all outgoing notifications (see JRA-9979). Since v5.2.
|
static String |
NOTIFICATION_ISSUE_MOVED
Deprecated.
No longer used because we don't use store all outgoing notifications (see JRA-9979). Since v5.2.
|
static String |
NOTIFICATION_ISSUE_REOPENED
Deprecated.
No longer used because we don't use store all outgoing notifications (see JRA-9979). Since v5.2.
|
static String |
NOTIFICATION_ISSUE_RESOLVED
Deprecated.
No longer used because we don't use store all outgoing notifications (see JRA-9979). Since v5.2.
|
static String |
NOTIFICATION_ISSUE_UPDATED
Deprecated.
No longer used because we don't use store all outgoing notifications (see JRA-9979). Since v5.2.
|
static String |
NOTIFICATION_ISSUE_WORKLOG_DELETED
Deprecated.
No longer used because we don't use store all outgoing notifications (see JRA-9979). Since v5.2.
|
static String |
NOTIFICATION_ISSUE_WORKLOG_UPDATED
Deprecated.
No longer used because we don't use store all outgoing notifications (see JRA-9979). Since v5.2.
|
static String |
NOTIFICATION_ISSUE_WORKLOGGED
Deprecated.
No longer used because we don't use store all outgoing notifications (see JRA-9979). Since v5.2.
|
static String |
NOTIFICATION_ISSUE_WORKSTARTED
Deprecated.
No longer used because we don't use store all outgoing notifications (see JRA-9979). Since v5.2.
|
static String |
NOTIFICATION_ISSUE_WORKSTOPPED
Deprecated.
No longer used because we don't use store all outgoing notifications (see JRA-9979). Since v5.2.
|
static String |
NOTIFICATION_KEY
Deprecated.
No longer used because we don't use store all outgoing notifications (see JRA-9979). Since v5.2.
|
Modifier and Type | Method and Description |
---|---|
void |
createMailThread(String type,
Long source,
String emailAddress,
String messageId)
Deprecated.
|
Issue |
findIssueFromMessageId(String messageId)
Looks for an issue associated with the given message by inspecting the "Message-ID" header of the message.
|
org.ofbiz.core.entity.GenericValue |
getAssociatedIssue(javax.mail.Message message)
Deprecated.
use instead
getAssociatedIssueObject(javax.mail.Message) method. Since 26/11/2011 |
Issue |
getAssociatedIssueObject(javax.mail.Message message)
Looks for an issue associated with the given message by inspecting the "In-Reply-To" header of the message.
|
String |
getThreadType(Long eventTypeId)
Deprecated.
No longer used because we don't use store all outgoing notifications (see JRA-9979). Since v5.2.
|
int |
removeAssociatedEntries(Long issueId)
Removes rows from NotificationInstance table associated with the given issue.
|
void |
storeIncomingMessageId(String messageId,
String senderAddress,
Issue issue,
MailThreadManager.MailAction action)
Remembers the given incoming MessageID.
|
void |
threadNotificationEmail(Email email,
Issue issue)
Thread the given email which is related to the given issue.
|
void |
threadNotificationEmail(Email email,
Long issueId)
Deprecated.
Use
threadNotificationEmail(Email, com.atlassian.jira.issue.Issue) instead. Since v5.2. |
static final String NOTIFICATION_KEY
static final String NOTIFICATION_ISSUE_CREATED
static final String NOTIFICATION_ISSUE_UPDATED
static final String NOTIFICATION_ISSUE_ASSIGNED
static final String NOTIFICATION_ISSUE_RESOLVED
static final String NOTIFICATION_ISSUE_CLOSED
static final String NOTIFICATION_ISSUE_COMMENTED
static final String NOTIFICATION_ISSUE_COMMENT_EDITED
static final String NOTIFICATION_ISSUE_REOPENED
static final String NOTIFICATION_ISSUE_DELETED
static final String NOTIFICATION_ISSUE_WORKLOGGED
static final String NOTIFICATION_ISSUE_WORKLOG_UPDATED
static final String NOTIFICATION_ISSUE_WORKLOG_DELETED
static final String NOTIFICATION_ISSUE_MOVED
static final String NOTIFICATION_ISSUE_WORKSTARTED
static final String NOTIFICATION_ISSUE_WORKSTOPPED
static final String NOTIFICATION_ISSUE_GENERICEVENT
static final String ISSUE_CREATED_FROM_EMAIL
MailThreadManager.MailAction.ISSUE_CREATED_FROM_EMAIL
instead. Since v5.2.static final String ISSUE_COMMENTED_FROM_EMAIL
MailThreadManager.MailAction.ISSUE_COMMENTED_FROM_EMAIL
instead. Since v5.2.void storeIncomingMessageId(String messageId, String senderAddress, Issue issue, MailThreadManager.MailAction action)
This is used when someone emails JIRA and CCs some else, and that person in turn does a reply-all. Such an email will not have the Issue Key in the subject.
messageId
- The incoming Message-IDsenderAddress
- The senderissue
- the issue that was affected (created or commented)action
- Issue created or Issue commentedvoid createMailThread(String type, Long source, String emailAddress, String messageId)
storeIncomingMessageId(String, String, com.atlassian.jira.issue.Issue, com.atlassian.jira.mail.MailThreadManager.MailAction)
instead. Since v5.2.3.As of v5.2, this should only be used for incoming messages, outgoing "Notification" messages are ignored. Instead we craft a special Message-ID that we can parse the Issue ID out of if someone replies to the notification.
type
- source
- emailAddress
- messageId
- void threadNotificationEmail(Email email, Long issueId)
threadNotificationEmail(Email, com.atlassian.jira.issue.Issue)
instead. Since v5.2.email
- the email to be sentissueId
- the issue that the email is aboutvoid threadNotificationEmail(Email email, Issue issue)
email
- the email to be sentissue
- the issue that the email is aboutString getThreadType(Long eventTypeId)
eventTypeId
- eventTypeId@Nullable Issue getAssociatedIssueObject(javax.mail.Message 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@Nullable Issue findIssueFromMessageId(String messageId)
messageId
- Message-ID to be checked@Deprecated org.ofbiz.core.entity.GenericValue getAssociatedIssue(javax.mail.Message message)
getAssociatedIssueObject(javax.mail.Message)
method. Since 26/11/2011The "In-Reply-To" header of the message is parsed to see if it was sent by this JIRA server and if so we retrieve the Issue ID from it.
message
- message to analyseint removeAssociatedEntries(Long issueId)
issueId
- the issueCopyright © 2002-2015 Atlassian. All Rights Reserved.