class MailAddress implements java.io.Serializable {

    @Deprecated
    public static  MailAddress getMailSender(String sender) {
        if (sender == null || sender.trim().length() <= 0) {
            return null;
        }
        if (sender.equals(MailAddress.NULL_SENDER_AS_STRING)) {
            return MailAddress.nullSender();
        }
        try {
            return new MailAddress(sender);
        } catch (AddressException e) {
            // Should never happen as long as the user does not modify the header by himself
            LOGGER.error("Unable to parse the sender address {}, so we fallback to a null sender", sender, e);
            return MailAddress.nullSender();
        }
    }

    private  MailAddress();
    public  MailAddress(String address);
    public  MailAddress(String localPart, String domain);
    public  MailAddress(String localPart, Domain domain);
    public  MailAddress(InternetAddress address);

}