if (parent != null && parent.getContentType().match(Mime.CT_MULTIPART_ALTERNATIVE)) {
if (parent != null && parent.getContentType().equals(CT_MULTIPART_ALTERNATIVE)) {
	 static boolean isFilterableAttachment(MPartInfo part) {	    MPartInfo parent = part.getParent();	    	    if (part.getContentType().match(Mime.CT_MULTIPART_WILD))	        return false;	    	    if (part.getContentType().match(Mime.CT_TEXT_WILD)) {	        if (parent == null || (part.getPartNum() == 1 && parent.getContentType().match(Mime.CT_MESSAGE_RFC822))) {	            // ignore top-level text/* types	            return false;	        }	        	        if (parent != null && parent.getContentType().match(Mime.CT_MULTIPART_ALTERNATIVE)) {	            // ignore body parts with a parent of multipart/alternative	            return false; 	        }	        	        // ignore if: it is the first body part, and has a multipart/*	        // parent, and that	        // multipart's parent is null or message/rfc822	        if (part.getPartNum() == 1) {	            if (parent != null && parent.getContentType().match(Mime.CT_MULTIPART_WILD)) {	                MPartInfo pp = parent.getParent();	                if (pp == null || pp.getContentType().match(Mime.CT_MESSAGE_RFC822)) { 	                    return false; 	                }	            }	        }	    }	    return true;	 }