/** * Returns the <code>Part</code>s of the email as a <code>List</code>. * <code>Part</code>s that are only containers are not included.<br/> * The <code>List</code> is sorted in ascending order of depth.<br/> * If this method is invoked more than once, the ordering of the elements * is the same. * @throws IOException * @throws MessagingException */ public List<Part> getParts() throws MessagingException, IOException { return getAllSubparts(this); }