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); }
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); }