Fix for lots of MailHost problems!
I was having lots of trouble with <dtml-sendmail>, and I investigated the code for MailHost. Instead of using the excellent smtplib module (that ships with Python) to send EMail, the folks at DC decided to write their own, using sockets. The attatched patch replaces 100+ lines of socket-based code with 2 line calls to smtplib. I think that this will improve the reliability of MailHost dramatically. As a side effect, the timeout and localhost properties of MailHosts are gone. So far, the basic <dtml-sendmail> tag works perfectly. Someone try this out and tell me what you think. -- Stephen Pitts smpitts@midsouth.rr.com webmaster - http://www.mschess.org
Stephen, This patch works fine with Qmail and, wait for it, MS Exchange :-) (the latter has been causing problems for me for the past 2 weeks). I am a very happy man. Thank you ! chas
I was having lots of trouble with <dtml-sendmail>, and I investigated the code for MailHost. Instead of using the excellent smtplib module (that ships with Python) to send EMail, the folks at DC decided to write their own, using sockets.
The attatched patch replaces 100+ lines of socket-based code with 2 line calls to smtplib. I think that this will improve the reliability of MailHost dramatically. As a side effect, the timeout and localhost properties of MailHosts are gone.
So far, the basic <dtml-sendmail> tag works perfectly. Someone try this out and tell me what you think. -- Stephen Pitts smpitts@midsouth.rr.com webmaster - http://www.mschess.org
Attachment Converted: "d:\mail\eudora-mailinglists\attach\mailhost.smtplib.patch"
In article <3.0.5.32.20000126020842.00986500@mail.skinnyhippo.com>, chas <panda@skinnyhippo.com> writes
Stephen,
This patch works fine with Qmail and, wait for it, MS Exchange :-) (the latter has been causing problems for me for the past 2 weeks).
I am a very happy man. Thank you !
chas
Is the patch in 2.1.3 yet ? ------- Regards, Graham Chiu gchiu<at>compkarori.co.nz http://www.compkarori.com/dynamo - The Homebuilt Dynamo http://www.compkarori.com/dbase - The dBase bulletin
On Wed, Jan 26, 2000 at 11:53:02AM +1200, Graham Chiu wrote:
In article <3.0.5.32.20000126020842.00986500@mail.skinnyhippo.com>, chas <panda@skinnyhippo.com> writes
Stephen,
This patch works fine with Qmail and, wait for it, MS Exchange :-) (the latter has been causing problems for me for the past 2 weeks).
I am a very happy man. Thank you !
chas
Is the patch in 2.1.3 yet ?
Nope, I just put it in the Collector about 8 hours ago. Hopefully it will be in the next point release once the DC people have taken a look at it. -- Stephen Pitts smpitts@midsouth.rr.com webmaster - http://www.mschess.org
participants (3)
-
chas -
Graham Chiu -
Stephen Pitts