Esempio n. 1
0
 private Boolean EnsureBodyContent(List <Pop3Content> contents)
 {
     for (int i = 0; i < contents.Count; i++)
     {
         if (contents[i].IsBody == true)
         {
             this._BodyContent = contents[i];
             return(true);
         }
         if (this.EnsureBodyContent(contents[i].Contents) == true)
         {
             return(true);
         }
     }
     return(false);
 }
Esempio n. 2
0
        private void Initialize(Pop3Message message, String text)
        {
            Pop3Content ct = null;

            this._Message  = message;
            this._Contents = new List <Pop3Content>();
            this._Data     = text;
            this._BodyText = "";
            if (this.IsMultiPart == true)
            {
                List <String> l = MimeContent.ParseToContentTextList(this.BodyData, this.MultiPartBoundary);
                for (int i = 0; i < l.Count; i++)
                {
                    ct = new Pop3Content(this._Message, l[i]);
                    ct.ParentContent = this;
                    this._Contents.Add(ct);
                }
            }
        }