jodd-mail/src/main/java/jodd/mail/EmailUtil.java
public static String extractMimeType(final String contentType) {
		final int ndx = contentType.indexOf(';');
		final String mime;
		if (ndx != -1) {
			mime = contentType.substring(0, ndx);
		} else {
			mime = contentType;
		}
		return mime;
	}
public static String extractMimeType(final String contentType) {
		final int ndx = contentType.indexOf(';');
		final String mime;
		if (ndx != -1) {
			mime = contentType.substring(0, ndx);
		} else {
			mime = contentType;
		}
		return mime;
	}
public static String extractMimeType ( final String contentType ) { final int ndx = contentType . indexOf ( ' ' ) ; final String mime ; if ( ndx != - 1 ) { mime = contentType . substring ( 0 , ndx ) ; } else { mime = contentType ; } return mime ; }
TODO: should this always return lowercase or always uppercase?
TODO : should this always return lowercase or always uppercase?