From 6eb582506fcea5fc48f2fcacaea542bfcec8f83a Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Wed, 23 Oct 1996 17:33:17 +0000 Subject: [PATCH] Version 1.2.1. Hard-code the time zone for date since some installations don't support %Z. Add an example for SunOS 4. --- signcontrol | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/signcontrol b/signcontrol index ff3ed46..8f56a8c 100755 --- a/signcontrol +++ b/signcontrol @@ -1,6 +1,6 @@ #!/usr/local/bin/perl5 -w # written April 1996, tale@uunet.uu.net (David C Lawrence) -# Version 1.2 +# Version 1.2.1 # CONFIGURATION @@ -36,7 +36,13 @@ $id_host = 'FULL_HOST_NAME'; # how can a standards-compliant date header be generated? # this gets substituted into a perl backtick expression, # so be careful with the quoting. -$get_date = "/usr/local/gnu/bin/date -u '+%a, %-d %h %Y %T %Z'"; +# -0000 is hardcoded here as GMT/UTC zone because in some installations +# the %Z flag does not work. +$get_date = "/usr/local/gnu/bin/date -u '+%a, %-d %h %Y %T -0000'"; + +# this expression works with SunOS 4's date; note that a formatted date string +# is not used because it doesn't support four digit years +# $get_date = '/bin/date -u | /bin/awk \'{print $1 ",", $3, $2, $6, $4, $5}\''; # headers to sign. Sender is included because non-PGP authentication uses it. @signheaders = ('Subject', 'Control', 'Message-ID', 'Date', 'From', 'Sender');