Great Circle Associates Majordomo-Users
(October 2001)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: archive.pl or archive2.pl & Y2K
From: Daniel Liston <dliston @ netscape . com>
Organization: Netscape Communications Corp.
Date: Mon, 15 Oct 2001 20:40:52 -0500
To: Robert Covell <rcovell @ rolet . com>
Cc: Majordomo-Users <majordomo-users @ GreatCircle . COM>
References: <NEBBIEOPILIMCEMKELNLAEAICCAA.rcovell@rolet.com>

If you are familiar with using patch, or diff files in general,

--- archive2.pl.orig    2000/01/07 11:00:49
+++ archive2.pl.new     2000/05/15 00:55:00
@@ -152,7 +152,11 @@
     local($junk, $addr, $dow, $moy, $dom, $time, $year, @rest);
 
     ($junk, $addr, $dow, $moy, $dom, $time, $year, @rest) = split(/\s+/,$from);
-    &open_archive($FH, $year % 100, $MoY{$moy}, $dom);
+    if ($year =~ /\d{4}/) {
+       &open_archive($FH, $year -1900, $MoY{$moy}, $dom);
+    } else {
+       &open_archive($FH, $year % 100, $MoY{$moy}, $dom);
+    }
 }
 
 sub open_archive {

Basically, the above diff file says to go to line 152 of archive2.pl and
turn the next 7 lines into the following 11 lines.  A minus indicates a
line to be removed, and a plus indicates lines to be added.  Lines without
a plus or minus are to be used to verify your current position within the
file, and are not to be changed.

Dan Liston


Robert Covell wrote:
> 
> I read in the FAQ "1.8 - Is Majordomo Y2K (Year 2000) compliant?" that the
> archive.pl is not Y2K compliant.  We are archiving and everything using
> archive2.pl and things are showing up as 1901.  From my research I have not
> found a way to fix this.  Does anyone know what can be done, or how to fix
> it?
> 
> -Bob



References:
Indexed By Date Previous: Re: Who Restriction with restrict_post = <mylist>
From: Daniel Liston <dliston@netscape.com>
Next: Digest Problems
From: "Richard Albrecht" <ralbrech@earthlink.com>
Indexed By Thread Previous: archive.pl or archive2.pl & Y2K
From: "Robert Covell" <rcovell@rolet.com>
Next: Digest Problems
From: "Richard Albrecht" <ralbrech@earthlink.com>

Google
 
Search Internet Search www.greatcircle.com