Exemplo n.º 1
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 /// <param name="date">Message <b>Date</b> header value.</param>
 /// <param name="subject">Message <b>Subject</b> header value.</param>
 /// <param name="from">Message <b>From</b> header value.</param>
 /// <param name="sender">Message <b>Sender</b> header value.</param>
 /// <param name="replyTo">Message <b>Reply-To</b> header value.</param>
 /// <param name="to">Message <b>To</b> header value.</param>
 /// <param name="cc">Message <b>Cc</b> header value.</param>
 /// <param name="bcc">Message <b>Bcc</b> header value.</param>
 /// <param name="inReplyTo">Message <b>In-Reply-To</b> header value.</param>
 /// <param name="messageID">Message <b>Message-ID</b> header value.</param>
 public IMAP_Envelope(DateTime date,string subject,Mail_t_Address[] from,Mail_t_Address[] sender,Mail_t_Address[] replyTo,Mail_t_Address[] to,Mail_t_Address[] cc,Mail_t_Address[] bcc,string inReplyTo,string messageID)
 {
     m_Date      = date;
     m_Subject   = subject;
     m_pFrom     = from;
     m_pSender   = sender;
     m_pReplyTo  = replyTo;
     m_pTo       = to;
     m_pCc       = cc;
     m_pBcc      = bcc;
     m_InReplyTo = inReplyTo;
     m_MessageID = messageID;
 }
Exemplo n.º 2
0
        /// <summary>
        /// Inserts a address into the collection at the specified location.
        /// </summary>
        /// <param name="index">The location in the collection where you want to add the item.</param>
        /// <param name="value">Address to insert.</param>
        /// <exception cref="ArgumentOutOfRangeException">Is raised when <b>index</b> is out of range.</exception>
        /// <exception cref="ArgumentNullException">Is raised when <b>value</b> is null reference.</exception>
        public void Insert(int index,Mail_t_Address value)
        {
            if(index < 0 || index > m_pList.Count){
                throw new ArgumentOutOfRangeException("index");
            }
            if(value == null){
                throw new ArgumentNullException("value");
            }

            m_pList.Insert(index,value);
            m_IsModified = true;
        }
Exemplo n.º 3
0
        /// <summary>
        /// Removes specified item from the collection.
        /// </summary>
        /// <param name="value">Address to remove.</param>
        /// <exception cref="ArgumentNullException">Is raised when <b>value</b> is null reference value.</exception>
        public void Remove(Mail_t_Address value)
        {
            if(value == null){
                throw new ArgumentNullException("value");
            }

            m_pList.Remove(value);
        }
Exemplo n.º 4
0
        /// <summary>
        /// Adds specified address to the end of the collection.
        /// </summary>
        /// <param name="value">Address to add.</param>
        /// <exception cref="ArgumentNullException">Is raised when <b>value</b> is null reference value.</exception>
        public void Add(Mail_t_Address value)
        {
            if(value == null){
                throw new ArgumentNullException("value");
            }

            m_pList.Add(value);
            m_IsModified = true;
        }