public AcEnumerator FirstAttachment( ) { AcEnumerator it = BeginAttachments( ); it.MoveNext( ); return(it); }
/// <summary> /// Build list of attachments in the mime message. /// </summary> /// <param name="InPartList"></param> /// <returns></returns> public MimeAttachmentList BuildList(MimeMessagePartList InPartList) { // clear the list Clear( ); AcEnumerator it = InPartList.BeginParts( ); for (it = InPartList.FirstPart( ); it.Current != null; it.MoveNext( )) { MimeMessagePart part = (MimeMessagePart)it.Current; PartProperty.ContentDisposition disp = part.Properties.ContentDisposition; if ((disp != null) && (disp.Disposition == "attachment")) { AddNewAttachment(part); } } return(this); }