コード例 #1
0
ファイル: Pop3Client.cs プロジェクト: c0d3l0g1c/Skycap-Mail
        protected virtual bool _TryGetUIDMessage(uint serialNumber, out Pop3MessageUIDInfo messageUIDInfo, out string errorMessage)
        {
            UIDL         command  = new UIDL(serialNumber);
            Pop3Response response = this.DoCommand(command);

            errorMessage = "";
            if (command.Messages.Count > 0)
            {
                messageUIDInfo = command.Messages[0];
                return(true);
            }
            messageUIDInfo = null;
            errorMessage   = response.Message;
            return(false);
        }
コード例 #2
0
ファイル: Pop3Client.cs プロジェクト: c0d3l0g1c/Skycap-Mail
        protected virtual bool _TryGetAllUIDMessages(out Pop3MessageUIDInfoCollection messageUIDInfo, out string errorMessage)
        {
            UIDL         command  = new UIDL();
            Pop3Response response = this.DoCommand(command);

            errorMessage = "";
            if (response.Type == EPop3ResponseType.OK)
            {
                messageUIDInfo = command.Messages;
                return(true);
            }
            messageUIDInfo = null;
            errorMessage   = response.Message;
            return(false);
        }