FIX: Cosmetic bug in ZMailer

Date: Mon, 3 Jan 2000 17:16:36 -0400 (AST)
From: Michael Smith <michael@csuite.ns.ca>
To: csuite-dev@chebucto.ns.ca, csuite-tech@chebucto.ns.ca
Precedence: bulk
Return-Path: <csuite-dev-mml-owner@chebucto.ns.ca>

next message in archive
no next message in thread
previous message in archive
Index of Subjects


  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.

---1978089469-1160812264-946934196=:5863
Content-Type: TEXT/PLAIN; charset=US-ASCII

Date-parsing code in versions of ZMailer prior to 2.99.51 are now
unnecessarily rewriting Date: headers on incoming mail. The result is that
all mail appears to have originated in the current timezone, at the time
it was received by the local site.

I've attached a patch. Save it to the /tmp directory on your CSuite site,
then:

$ cd $CS_ROOT		# replace $CS_ROOT with your CS_ROOT, e.g. /var/csuite
$ cd src/etc/zmailer/router/libdb
$ su			# become root
# patch < /tmp/header.c.patch
# make
# cd ..
# rm router
# make
# ls -l router		# make sure the new binary exists!
# strip router
# cd $CS_ROOT/etc/mail/bin
# mv router router.old && cp -p ~-/router .
# ./zmailer kill router
# ./zmailer router

If something goes wacky at this point, stop the router
(/var/csuite/etc/mail/bin/zmailer kill router), move the backup
router.old back to router (mv router.old router), and restart the router
(/var/csuite/etc/mail/bin/zmailer router).


Below is the same patch in unified diff format, in case you'd like to
apply it by hand.

--- header.c.29950	Sun Mar 28 10:16:19 1999
+++ header.c	Mon Jan  3 16:52:31 2000
@@ -47,8 +47,8 @@
 #if 0
 { "return-path",	AMailboxList,	nilUserType,	normal		},
 #endif
-{ "date",		DateTime,	nilUserType,	normal		},
-{ "resent-date",	DateTime,	nilUserType,	Resent		},
+{ "date",	 nilHeaderSemantics,	nilUserType,	normal		},
+{ "resent-date", nilHeaderSemantics,	nilUserType,	Resent		},
 { "encrypted",		Encrypted,	nilUserType,	normal		},
 { "errors-to",		AddressList,	Sender,		normal		},
 { "obsoletes",		MessageIDList,	nilUserType,	normal		},

---1978089469-1160812264-946934196=:5863
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="header.c.patch"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.20.0001031716360.5863@pentagram.nslug.ns.ca>
Content-Description: 
Content-Disposition: attachment; filename="header.c.patch"

KioqIGhlYWRlci5jLjI5OTUwCVN1biBNYXIgMjggMTA6MTY6MTkgMTk5OQ0K
LS0tIGhlYWRlci5jCU1vbiBKYW4gIDMgMTY6NTI6MzEgMjAwMA0KKioqKioq
KioqKioqKioqDQoqKiogNDcsNTQgKioqKg0KICAjaWYgMA0KICB7ICJyZXR1
cm4tcGF0aCIsCUFNYWlsYm94TGlzdCwJbmlsVXNlclR5cGUsCW5vcm1hbAkJ
fSwNCiAgI2VuZGlmDQohIHsgImRhdGUiLAkJRGF0ZVRpbWUsCW5pbFVzZXJU
eXBlLAlub3JtYWwJCX0sDQohIHsgInJlc2VudC1kYXRlIiwJRGF0ZVRpbWUs
CW5pbFVzZXJUeXBlLAlSZXNlbnQJCX0sDQogIHsgImVuY3J5cHRlZCIsCQlF
bmNyeXB0ZWQsCW5pbFVzZXJUeXBlLAlub3JtYWwJCX0sDQogIHsgImVycm9y
cy10byIsCQlBZGRyZXNzTGlzdCwJU2VuZGVyLAkJbm9ybWFsCQl9LA0KICB7
ICJvYnNvbGV0ZXMiLAkJTWVzc2FnZUlETGlzdCwJbmlsVXNlclR5cGUsCW5v
cm1hbAkJfSwNCi0tLSA0Nyw1NCAtLS0tDQogICNpZiAwDQogIHsgInJldHVy
bi1wYXRoIiwJQU1haWxib3hMaXN0LAluaWxVc2VyVHlwZSwJbm9ybWFsCQl9
LA0KICAjZW5kaWYNCiEgeyAiZGF0ZSIsCSBuaWxIZWFkZXJTZW1hbnRpY3Ms
CW5pbFVzZXJUeXBlLAlub3JtYWwJCX0sDQohIHsgInJlc2VudC1kYXRlIiwg
bmlsSGVhZGVyU2VtYW50aWNzLAluaWxVc2VyVHlwZSwJUmVzZW50CQl9LA0K
ICB7ICJlbmNyeXB0ZWQiLAkJRW5jcnlwdGVkLAluaWxVc2VyVHlwZSwJbm9y
bWFsCQl9LA0KICB7ICJlcnJvcnMtdG8iLAkJQWRkcmVzc0xpc3QsCVNlbmRl
ciwJCW5vcm1hbAkJfSwNCiAgeyAib2Jzb2xldGVzIiwJCU1lc3NhZ2VJRExp
c3QsCW5pbFVzZXJUeXBlLAlub3JtYWwJCX0sDQo=
---1978089469-1160812264-946934196=:5863--

next message in archive
no next message in thread
previous message in archive
Index of Subjects