/// 指定した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)); }
/// 指定した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()); }
/// 指定した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(); }
/// 指定した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); }