use of javax.mail.internet.MimePart in project zm-mailbox by Zimbra.
the class AttachmentDataSource method getContentType.
public String getContentType() {
String contentType = null;
MimePart mp = null;
try {
mp = getMimePart();
if (mp != null) {
contentType = mp.getContentType();
}
} catch (Exception e) {
ZimbraLog.mailbox.error("Unable to determine content type for contact %d.", mContact.getId(), e);
}
return contentType;
}
Aggregations