com.atlassian.jira.mail
Class JiraMailUtils

java.lang.Object
  extended by com.atlassian.jira.mail.JiraMailUtils

public class JiraMailUtils
extends Object

Helper methods for common mail related operations.


Constructor Summary
JiraMailUtils()
           
 
Method Summary
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 isHasMailServer()
          Deprecated. Use MailServerManager.isDefaultSMTPMailServerDefined() instead. Since 5.0
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JiraMailUtils

public JiraMailUtils()
Method Detail

isHasMailServer

@Deprecated
public static boolean isHasMailServer()
Deprecated. Use MailServerManager.isDefaultSMTPMailServerDefined() instead. Since 5.0


getMessageId

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

getReplyToIds

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


Copyright © 2002-2014 Atlassian. All Rights Reserved.