public class JiraMailUtils extends Object
Constructor and Description |
---|
JiraMailUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
getFromNameForUser(ApplicationUser sender)
Returns the sender's name in the format specified by
APKeys.EMAIL_FROMHEADER_FORMAT ('Joe Bloggs (JIRA)' usually). |
static String |
getMessageId(Issue issue,
int sequence)
Generates a single ID to identify a specific email sent by JIRA and used in 'message-id' header field.
|
static List<String> |
getReplyToIds(Issue issue)
Returns a list of IDs to be used in 'in-reply-to' and 'references' field of the email header.
|
static boolean |
isAvatarUrl(URI uri) |
static boolean |
isHasMailServer()
Deprecated.
Use
MailServerManager.isDefaultSMTPMailServerDefined() instead.
Since 5.0 |
@Deprecated public static boolean isHasMailServer()
MailServerManager.isDefaultSMTPMailServerDefined()
instead.
Since 5.0public static String getFromNameForUser(ApplicationUser sender)
APKeys.EMAIL_FROMHEADER_FORMAT
('Joe Bloggs (JIRA)' usually).
sender
- The user sending the email@Nonnull public static String getMessageId(Issue issue, int sequence)
@Nonnull public static List<String> getReplyToIds(Issue issue)
public static boolean isAvatarUrl(URI uri)
uri
- typically from src attribute of in the MimeMessageCopyright © 2002-2021 Atlassian. All Rights Reserved.