Ejemplo n.º 1
0
        private bool DecodeMime()
        {
            // Decodes the mime image saved in Mime above...
            if (ExtractHeader() == false)
            {
                ErrorDescription = "Unable to extract the message header";
                return(false);
            }

            var objMimeDecoder = new MimeDecoder();

            if (objMimeDecoder.DecodeMime(Mime))
            {
                DecodeHeader();
                Body = objMimeDecoder.Body;
                aryAttachments.Clear();
                foreach (Attachment stcAttachment in objMimeDecoder.AttachmentCollection)
                {
                    aryAttachments.Add(stcAttachment);
                }
                return(true);
            }

            return(false);
        }
Ejemplo n.º 2
0
        } // AddAttachment

        private bool DecodeMime()
        {
            // Decodes the mime image saved in Mime above...
            var objMimeDecoder = new MimeDecoder();

            if (objMimeDecoder.DecodeMime(Mime))
            {
                Header = objMimeDecoder.Header;
                DecodeHeader();
                Body = objMimeDecoder.Body;
                aryAttachments.Clear();
                foreach (Attachment stcAttachment in objMimeDecoder.AttachmentCollection)
                {
                    aryAttachments.Add(stcAttachment);
                }
                return(true);
            }

            return(false);
        } // DecodeMime