Bug in SendCommand...

Aug 26, 2008 at 11:16 PM
private void SendCommand(String inCommand)

Is improperly adding a space to the end of the command before the \r\n.

Byte[] bb = Encoding.ASCII.GetBytes(inCommand + " " + MailParser.NewLine);

Should read:

Byte[] bb = Encoding.ASCII.GetBytes(inCommand + MailParser.NewLine);

This was causing a failure to log into an Exchange POP3 server.

Best,

Brian Lambert

Brian Lambert | Developer | CSA Concept Development | Cambridge, MA

blambert@microsoft.com | +1 (857) 453-6294 X6294 (office) | +1 (857) 445-1521 (mobile)


Coordinator
Aug 29, 2008 at 1:09 AM
I modify this bug in SendCommand method of Pop3Client class and SmtpClient class.

Byte[] bb = Encoding.ASCII.GetBytes(inCommand + " " + MailParser.NewLine);

--->

Byte[] bb = Encoding.ASCII.GetBytes(inCommand + MailParser.NewLine);

thanks.