Exemple #1
0
        public void GetMessageText(Int64 mailIndex, EndGetResponse callbackFunction)
        {
            Retr           cm = null;
            EndGetResponse md = callbackFunction;

            this.CheckAuthenticate();
            cm = new Retr(mailIndex);
            this.BeginExecute(cm, md);
        }
Exemple #2
0
        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);
        }
Exemple #3
0
        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);
            }
        }
Exemple #4
0
        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);
            }
        }
Exemple #5
0
        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);
        }