public interface MailThreader
| Modifier and Type | Method and Description |
|---|---|
String |
getCustomMessageId(Email email)
Allows this MailThreader to define a custom Message-ID to be set in the outgoing mail header.
|
void |
storeSentEmail(Email email)
Deprecated.
Use
getCustomMessageId(Email) instead to create a parsable custom Message ID. Since v2.5.0. |
void |
threadEmail(Email email)
Set the In-Reply-To header for an email, so it will appear threaded.
|
void threadEmail(Email email)
email - The unsent mail to altervoid storeSentEmail(Email email)
getCustomMessageId(Email) instead to create a parsable custom Message ID. Since v2.5.0.
This is considered a bad idea for scalability because it requires applications to store details of every single outgoing email.
For example, see JRA-9979.
If you need to recognise incoming "In-Reply-To" headers, then it is preferred to use getCustomMessageId(Email) to
create a parsable custom Message ID.
email - The sent mail whose Message-ID we should recordString getCustomMessageId(Email email)
Returning null means let the library create one automatically.
Be aware that Message-IDs must be globally unique, and can only contain a limited subset of ASCII characters.
Do not include the angle-brackets in the returned ID - these will be added for you.
email - the unsent emailCopyright © 2018 Atlassian. All rights reserved.