protected ReceivedEmail parse(final InputStream emlContentInputStream) throws MessagingException {
		if (getSession() == null) {
			createSession(getProperties());
		}

		try {
			final MimeMessage message = new MimeMessage(getSession(), emlContentInputStream);
			return new ReceivedEmail(message, false, null);
		} finally {
			StreamUtil.close(emlContentInputStream);
		}
	}
protected ReceivedEmail parse(final InputStream emlContentInputStream) throws MessagingException {
		if (getSession() == null) {
			createSession(getProperties());
		}

		try {
			final MimeMessage message = new MimeMessage(getSession(), emlContentInputStream);
			return new ReceivedEmail(message, false, null);
		} finally {
			StreamUtil.close(emlContentInputStream);
		}
	}
protected ReceivedEmail parse ( final InputStream emlContentInputStream ) throws MessagingException { if ( getSession ( ) == null ) { createSession ( getProperties ( ) ) ; } try { final MimeMessage message = new MimeMessage ( getSession ( ) , emlContentInputStream ) ; return new ReceivedEmail ( message , false , null ) ; } finally { StreamUtil . close ( emlContentInputStream ) ; } }
Parses the EML content. If {@link Session} is not created, default one will be used.

@param emlContentInputStream {@link InputStream} containing the EML content.
@return {@link ReceivedEmail}.
@throws MessagingException if {@link MimeMessage} cannot be created.
Parses the EML content . If { @link Session } is not created default one will be used .