Lines Matching defs:part
170 * Add a single attachment part to the message
184 * @param part a single attachment part from POP or IMAP
188 Part part) throws MessagingException, IOException {
193 String contentType = MimeUtility.unfoldAndDecode(part.getContentType());
196 String contentDisposition = MimeUtility.unfoldAndDecode(part.getDisposition());
202 String disposition = part.getDisposition();
212 String[] partIds = part.getHeader(MimeHeader.HEADER_ANDROID_ATTACHMENT_STORE_DATA);
216 localAttachment.mMimeType = part.getMimeType();
218 localAttachment.mContentId = part.getContentId();
266 saveAttachmentBody(context, part, localAttachment, localMessage.mAccountKey);
287 * Save the body part of a single attachment, to a file in the attachments directory.
289 public static void saveAttachmentBody(Context context, Part part, Attachment localAttachment,
291 if (part.getBody() != null) {
294 InputStream in = part.getBody().getInputStream();
375 // If there is a quoted part (forwarding or reply), add the intro first, and then the
417 * Helper method to add a body part for a given type of text, if found
419 * @param mp The text body part will be added to this multipart