/// <summary> /// Default constructor. /// </summary> public IMAP_BODY() { m_pMainEntity = new IMAP_BODY_Entity(); }
/// <summary> /// Gets mime entities, including nested entries. /// </summary> /// <param name="entities"></param> /// <param name="allEntries"></param> private void GetEntities(IMAP_BODY_Entity[] entities,List<IMAP_BODY_Entity> allEntries) { if(entities != null){ foreach(IMAP_BODY_Entity ent in entities){ allEntries.Add(ent); // Add child entities, if any if(ent.ChildEntities.Length > 0){ GetEntities(ent.ChildEntities,allEntries); } } } }
/// <summary> /// Parses IMAP BODYSTRUCTURE from body structure string. /// </summary> /// <param name="bodyStructureString">Body structure string</param> public void Parse(string bodyStructureString) { m_pMainEntity = new IMAP_BODY_Entity(); m_pMainEntity.Parse(bodyStructureString); }