Update of /cvsroot/dnsmail/dnsmail/DnsMail
In directory sc8-pr-cvs12.sourceforge.net:/tmp/cvs-serv23021/dnsmail/DnsMail
Modified Files:
DnsMail.cs
Log Message:
Fixed: Dnsmail.LastCode, LastAnswer, LastResponse
Added: Dnsmail.X509Certificate if ssl is set.
Index: DnsMail.cs
===================================================================
RCS file: /cvsroot/dnsmail/dnsmail/DnsMail/DnsMail.cs,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** DnsMail.cs 11 Aug 2006 14:24:32 -0000 1.16
--- DnsMail.cs 15 Aug 2006 13:07:00 -0000 1.17
***************
*** 64,68 ****
public int Port
{
! get { return smtpport; }
set
{
--- 64,71 ----
public int Port
{
! get
! {
! return smtpport;
! }
set
{
***************
*** 79,87 ****
get
{
! return
! (helo == null || helo == string.Empty)
! ? DNSAPI.HelloHost : helo;
}
- set { helo = value; }
}
--- 82,91 ----
get
{
! return (helo == null || helo == string.Empty) ? DNSAPI.HelloHost : helo;
! }
! set
! {
! helo = value;
}
}
***************
*** 89,94 ****
public bool UseLog
{
! get { return uselog; }
! set { uselog = value; }
}
--- 93,113 ----
public bool UseLog
{
! get
! {
! return uselog;
! }
! set
! {
! uselog = value;
! }
! }
!
! int tickcount = -1;
! public int TickCount
! {
! get
! {
! return tickcount;
! }
}
***************
*** 103,117 ****
return localpoint;
}
! set { localpoint = value; }
}
public int LastCode
{
! get { return m_Client.LastCode; }
}
public string LastAnswer
{
! get { return m_Client.LastAnswer; }
}
--- 122,151 ----
return localpoint;
}
! set
! {
! localpoint = value;
! }
}
public int LastCode
{
! get
! {
! if (m_Client != null)
! return m_Client.LastCode;
!
! return 0;
! }
}
public string LastAnswer
{
! get
! {
! if (m_Client != null)
! return m_Client.LastAnswer;
!
! return String.Empty;
! }
}
***************
*** 120,133 ****
get
{
! return m_Client.LastResponse;
! }
! }
! public bool SslActive
! {
! get { return (m_Client != null && m_Client.SslActive); }
}
! private bool usessl = false;
public bool UseSsl
{
--- 154,165 ----
get
{
! if (m_Client != null)
! return m_Client.LastResponse;
! return String.Empty;
! }
}
! private bool usessl;
public bool UseSsl
{
***************
*** 136,143 ****
}
! int tickcount = -1;
! public int TickCount
{
! get { return tickcount; }
}
--- 168,188 ----
}
! public bool SslActive
{
! get
! {
! return (m_Client != null && m_Client.SslActive);
! }
! }
!
! public X509Certificate X509Certificate
! {
! get
! {
! if (m_Client != null)
! return m_Client.X509Certificate;
!
! return null;
! }
}
***************
*** 508,513 ****
--- 553,560 ----
}
OnRecipientsAdded(mi.Recipients);
+
if (rcptcount > 0)
OnReadyToSendMassMail(EventArgs.Empty);
+
return rcptcount;
}
***************
*** 596,618 ****
finalbuffer ? SmtpEncode.All : SmtpEncode.Dot
);
! // FIXME
m_Client.Write(buffer, 0, buffer.Length);
! int sent = buffer.Length;
! if ((sent > 0) && sent == buffer.Length)
{
! totalsent += tosend;
! remain -= tosend;
! OnSendProgress(totalsent, remain);
! buffer = null;
! if ((totalsent < len) && m_Client.Poll(500, System.Net.Sockets.SelectMode.SelectWrite))
! {
! goto LOOP;
! }
! }
buffchar = null;
FINISH:
! len = sent = 0;
}
finally
--- 643,662 ----
finalbuffer ? SmtpEncode.All : SmtpEncode.Dot
);
!
m_Client.Write(buffer, 0, buffer.Length);
!
! totalsent += tosend;
! remain -= tosend;
! OnSendProgress(totalsent, remain);
! buffer = null;
! if ((totalsent < len) && m_Client.Poll(500, System.Net.Sockets.SelectMode.SelectWrite))
{
! goto LOOP;
! }
buffchar = null;
FINISH:
! len = 0;
}
finally
|