public class

JiraMailUtils

extends Object
java.lang.Object
   ↳ com.atlassian.jira.mail.JiraMailUtils

Class Overview

Helper methods for common mail related operations.

Summary

Public Constructors
JiraMailUtils()
Public Methods
@Nonnull 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.
@Nonnull 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.
@Deprecated static boolean isHasMailServer()
This method is deprecated. Use isDefaultSMTPMailServerDefined() instead. Since 5.0
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public JiraMailUtils ()

Public Methods

@Nonnull public 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.

Returns
  • A single 'message-id' as in http://www.ietf.org/rfc/rfc2822.txt, cannot be null.

@Nonnull public 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. The first item in this list will be in the format currently in use, followed by all the other formats supported.

Returns
  • a list of IDs as in http://www.ietf.org/rfc/rfc2822.txt, cannot be null or an empty list.

@Deprecated public static boolean isHasMailServer ()

This method is deprecated.
Use isDefaultSMTPMailServerDefined() instead. Since 5.0