Esempio n. 1
0
        /// 指定したMailIndexのメールデータを取得します。
        /// <summary>
        /// Get mail data of specified mail index.
        /// 指定したMailIndexのメールデータを取得します。
        /// </summary>
        /// <param name="mailIndex"></param>
        /// <returns></returns>
        public MailMessage GetMessage(Int64 mailIndex)
        {
            this.CheckAuthenticate();
            var cm = new RetrCommand(mailIndex);

            this.Send(cm.GetCommandString());
            this.Commnicating = true;
            var str = new MemoryStream();

            this.GetResponse(str, true);
            str.Position = 0;
            return(this.MimeParser.ToMailMessage(str));
        }
Esempio n. 2
0
        /// 指定したMailIndexのメールデータを取得します。
        /// <summary>
        /// Get mail data of specified mail index.
        /// 指定したMailIndexのメールデータを取得します。
        /// </summary>
        /// <param name="mailIndex"></param>
        /// <returns></returns>
        public Byte[] GetMessageData(Int64 mailIndex)
        {
            this.CheckAuthenticate();
            var cm = new RetrCommand(mailIndex);

            this.Send(cm.GetCommandString());
            this.Commnicating = true;
            var str = new MemoryStream();

            this.GetResponse(str, true);
            str.Position = 0;
            return(str.ToArray());
        }
Esempio n. 3
0
 /// 指定したMailIndexのメールデータを取得します。
 /// <summary>
 /// Get mail data of specified mail index.
 /// 指定したMailIndexのメールデータを取得します。
 /// </summary>
 /// <param name="mailIndex"></param>
 /// <returns></returns>
 public Byte[] GetMessageData(Int64 mailIndex)
 {
     this.CheckAuthenticate();
     var cm = new RetrCommand(mailIndex);
     this.Send(cm.GetCommandString());
     this.Commnicating = true;
     var str = new MemoryStream();
     this.GetResponse(str, true);
     str.Position = 0;
     return str.ToArray();
 }
Esempio n. 4
0
 /// 指定したMailIndexのメールデータを取得します。
 /// <summary>
 /// Get mail data of specified mail index.
 /// 指定したMailIndexのメールデータを取得します。
 /// </summary>
 /// <param name="mailIndex"></param>
 /// <returns></returns>
 public MailMessage GetMessage(Int64 mailIndex)
 {
     this.CheckAuthenticate();
     var cm = new RetrCommand(mailIndex);
     this.Send(cm.GetCommandString());
     this.Commnicating = true;
     var str = new MemoryStream();
     this.GetResponse(str, true);
     str.Position = 0;
     return this.MimeParser.ToMailMessage(str);
 }