Update of /cvsroot/dnsmail/dnsmail/DnsMail
In directory sc8-pr-cvs12.sourceforge.net:/tmp/cvs-serv29370/dnsmail/DnsMail
Modified Files:
DnsMail.cs
Log Message:
SmtpClient.UseLog ASAP to log initial message.
Call SmtpClient.Close first to log last message.
Index: DnsMail.cs
===================================================================
RCS file: /cvsroot/dnsmail/dnsmail/DnsMail/DnsMail.cs,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** DnsMail.cs 7 Aug 2006 11:33:39 -0000 1.11
--- DnsMail.cs 7 Aug 2006 15:30:31 -0000 1.12
***************
*** 218,224 ****
if (m_Client != null)
{
! m_Client.Close();
m_Client = null;
- OnClosed(EventArgs.Empty);
}
/***************************************************
--- 218,232 ----
if (m_Client != null)
{
! try
! {
! m_Client.Close();
! }
! catch { throw; }
! try
! {
! OnClosed(EventArgs.Empty);
! }
! catch { throw; }
m_Client = null;
}
/***************************************************
***************
*** 227,231 ****
if (disposing)
{
- UseLog = false;
m_RcptCount ^= m_RcptCount;
}
--- 235,238 ----
***************
*** 479,483 ****
{
IPEndPoint remote = new IPEndPoint(ip, Port);
! m_Client = new SmtpClient(remote, LocalPoint);
OnConnect(ip.ToString());
ret = true;
--- 486,490 ----
{
IPEndPoint remote = new IPEndPoint(ip, Port);
! m_Client = new SmtpClient(remote, LocalPoint, UseLog);
OnConnect(ip.ToString());
ret = true;
|