Revision: 27
Author: tmyroadctfig
Date: 2006-05-03 07:02:03 -0700 (Wed, 03 May 2006)
ViewCVS: http://svn.sourceforge.net/nmailserver/?rev=27&view=rev
Log Message:
-----------
Changed the SMTP client to handle multiple 3xx messages after a DATA command.
Modified Paths:
--------------
NMail/trunk/NMail.SmtpClient/SmtpClient.cs
Modified: NMail/trunk/NMail.SmtpClient/SmtpClient.cs
===================================================================
--- NMail/trunk/NMail.SmtpClient/SmtpClient.cs 2006-05-03 13:48:24 UTC (rev 26)
+++ NMail/trunk/NMail.SmtpClient/SmtpClient.cs 2006-05-03 14:02:03 UTC (rev 27)
@@ -391,6 +391,11 @@
blocks = (blocks > 0) ? blocks : 1;
this.response = this.connection.GetResponse(TimeSpan.FromSeconds(this.config.TimeoutDataBlock.TotalSeconds * blocks));
+ // Discard any extra 3xx messages
+ while (this.response.Continue) {
+ this.response = this.connection.GetResponse(TimeSpan.FromSeconds(this.config.TimeoutDataBlock.TotalSeconds * blocks));
+ }
+
return this.response.OK;
} catch (TimeoutException) {
log.Debug("Timed out communicating with remote server while sending data.");
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|