Beispiel #1
0
        /// <summary>
        /// Gets mime entities, including nested entries. 
        /// </summary>
        /// <param name="entities"></param>
        /// <param name="allEntries"></param>
        private void GetEntities(MimeEntityCollection entities,List<MimeEntity> allEntries)
        {
            if(entities != null){
                foreach(MimeEntity ent in entities){
                    allEntries.Add(ent);

                    // Add child entities, if any
                    if(ent.ChildEntities.Count > 0){
                        GetEntities(ent.ChildEntities,allEntries);
                    }
                }
            }
        }
Beispiel #2
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 public MimeEntity()
 {
     m_pHeader = new HeaderFieldCollection();
     m_pChildEntities = new MimeEntityCollection(this);
     m_pHeaderFieldCache = new Hashtable();
 }