jodd-mail/src/main/java/jodd/mail/RFC2822AddressParser.java
public EmailAddress parseToEmailAddress(final String email) {
		final ParsedAddress parsedAddress = parse(email);

		if (!parsedAddress.isValid()) {
			return null;
		}

		return new EmailAddress(parsedAddress.getPersonalName(), parsedAddress.getLocalPart() + '@' + parsedAddress.getDomain());
	}
public EmailAddress parseToEmailAddress(final String email) {
		final ParsedAddress parsedAddress = parse(email);

		if (!parsedAddress.isValid()) {
			return null;
		}

		return new EmailAddress(parsedAddress.getPersonalName(), parsedAddress.getLocalPart() + '@' + parsedAddress.getDomain());
	}
public EmailAddress parseToEmailAddress ( final String email ) { final ParsedAddress parsedAddress = parse ( email ) ; if ( ! parsedAddress . isValid ( ) ) { return null ; } return new EmailAddress ( parsedAddress . getPersonalName ( ) , parsedAddress . getLocalPart ( ) + ' ' + parsedAddress . getDomain ( ) ) ; }
Convenient shortcut of {@link #parse(String)} that returns {@link EmailAddress} or {@code null}.
Convenient shortcut of {