doc.name = mp.getFileName();
doc.name = Mime.getFilename(mp);
	protected Doc getDocumentDataFromMessage(OperationContext octxt, Mailbox mbox, String msgid, String part) throws ServiceException {		Message item = mbox.getMessageById(octxt, Integer.parseInt(msgid));        MimeMessage mm = item.getMimeMessage();		Doc doc = new Doc();		try {	        MimePart mp = Mime.getMimePart(mm, part);			doc.contents = ByteUtil.getContent(mp.getInputStream(), 0);			doc.name = mp.getFileName();			doc.contentType = mp.getContentType();		} catch (Exception e) {			throw ServiceException.FAILURE("cannot get part "+part+" from message "+msgid, e);		}				return doc;	}