示例#1
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 public IMAP_BODY()
 {
     m_pMainEntity = new IMAP_BODY_Entity();
 }
示例#2
0
        /// <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);
                    }
                }
            }
        }
示例#3
0
 /// <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);
 }