[Mailman-Developers] [PATCH] MTA patch for sendmail/qmail
Balazs Nagy
julian7@kva.hu
Wed, 15 Sep 1999 14:43:19 +0200 (CEST)
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.
---456965764-1315701514-937399399=:19137
Content-Type: TEXT/PLAIN; charset=US-ASCII
Hiyas,
I tested and debugged throughoutly my ol' patch and I found it useable.
This patch's goal is to use the sendmail-interface rather than use the SMTP
port managing to send letters. This method is much more effective when the
SMTP server itself is in the local machine. (due of the latency of
establishing a socket)
In the attachment there's the latest patch. "Save it, patch it, try it,
apply it" ("Hold Me, Thrill Me, Kiss Me, Kill Me").
--
Regards: Kevin (Balazs)
---456965764-1315701514-937399399=:19137
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="mailman-mta.patch"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.10.9909151443191.19137@krondor.kva.hu>
Content-Description:
Content-Disposition: attachment; filename="mailman-mta.patch"
ZGlmZiAtcnVOIG1haWxtYW4ub3JpZy9NYWlsbWFuL01lc3NhZ2UucHkgbWFp
bG1hbi9NYWlsbWFuL01lc3NhZ2UucHkNCi0tLSBtYWlsbWFuLm9yaWcvTWFp
bG1hbi9NZXNzYWdlLnB5CVdlZCBKdWwgMjEgMDM6MDU6MTAgMTk5OQ0KKysr
IG1haWxtYW4vTWFpbG1hbi9NZXNzYWdlLnB5CVRodSBTZXAgIDIgMTA6NTQ6
NTQgMTk5OQ0KQEAgLTIyOSw2ICsyMjksOSBAQA0KIAlpZiBub3Qgc2VsZi5n
ZXRoZWFkZXIoJ2Zyb20nKSBhbmQgc2V0X2Zyb206DQogCSAgICBzZWxmLlNl
dEhlYWRlcignZnJvbScsIHNlbmRlcikNCiANCisgICAgZGVmIFNldERhdGUo
c2VsZiwgZGF0ZT10aW1lLmN0aW1lKHRpbWUudGltZSgpKSk6DQorCXNlbGYu
U2V0SGVhZGVyKCdkYXRlJywgZGF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