public void GetMessageText(Int64 mailIndex, EndGetResponse callbackFunction) { Retr cm = null; EndGetResponse md = callbackFunction; this.CheckAuthenticate(); cm = new Retr(mailIndex); this.BeginExecute(cm, md); }
public void ExecuteRetr(Int64 mailIndex, Action <Pop3Message> callbackFunction) { Retr cm = null; EndGetResponse md = null; md = new EndGetResponse(delegate(String responseString) { callbackFunction(new Pop3Message(responseString, mailIndex)); }); this.CheckAuthenticate(); cm = new Retr(mailIndex); this.BeginExecute(cm, md); }
public void GetMessageText(Stream stream, Int64 mailIndex) { Retr cm = null; this.CheckAuthenticate(); try { cm = new Retr(mailIndex); this.Execute(stream, cm); } catch (Exception ex) { throw new Pop3ReceiveException(ex); } }
public String GetMessageText(Int64 mailIndex) { Retr cm = null; this.CheckAuthenticate(); try { cm = new Retr(mailIndex); return(this.Execute(cm)); } catch (Exception ex) { throw new Pop3ReceiveException(ex); } }
public Pop3Message GetMessage(Int64 mailIndex) { Pop3Message pm = null; Retr cm = null; this.CheckAuthenticate(); try { cm = new Retr(mailIndex); String MailData = this.Execute(cm); pm = new Pop3Message(MailData, mailIndex); } catch (Exception ex) { throw new Pop3ReceiveException(ex); } return(pm); }