Great Circle Associates Majordomo-Workers
(August 1999)
 

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

Subject: Re: mj2 digest problems
From: Jason L Tibbitts III <tibbs @ math . uh . edu>
Date: 02 Aug 1999 21:43:30 -0500
To: Stefanita Vilcu <vsv @ dnt . ro>
Cc: majordomo-workers @ greatcircle . com
In-reply-to: Stefanita Vilcu's message of "Sun, 1 Aug 1999 20:41:50 +0300 (EEST)"
References: <Pine.LNX.4.10.9908012036360.6163-100000@zero.dnt.ro>
User-agent: Gnus/5.070065 (Pterodactyl Gnus v0.65) Emacs/20.3

I've committed a patch which may help this problem; I'm still not sure how
it's happening but the warnings show that some initialization is definitely
required.

The patch boils down to this:

Index: lib/Mj/Digest.pm
===================================================================
RCS file: /home/cvs/majordomo/majordomo/lib/Mj/Digest.pm,v
retrieving revision 1.16
diff -u -r1.16 Digest.pm
--- lib/Mj/Digest.pm    1999/03/14 06:27:02     1.16
+++ lib/Mj/Digest.pm    1999/08/03 02:43:52
@@ -192,6 +192,13 @@
   $run ||= $self->{digests};
 
   for $i (@{$run}) {
+    unless ($state->{$i}) {
+      $state->{$i}{messages} = [];
+      $state->{$i}{lastrun}  = 0;
+      $state->{$i}{bytecount}= 0;
+      $state->{$i}{newest}   = 0;
+      $change = 1;
+    }
     $push = $force || $self->decide($state->{$i}, $self->{decision}{$i});
     $change ||= $push;
     if ($push) {

 - J<


Follow-Ups:
References:
Indexed By Date Previous: Re: mj2 and qmail aliases
From: John R Levine <johnl@iecc.com>
Next: Re: Address matching?
From: Jason L Tibbitts III <tibbs@math.uh.edu>
Indexed By Thread Previous: Re: mj2 digest problems
From: Stefanita Vilcu <vsv@dnt.ro>
Next: Re: mj2 digest problems
From: Stefanita Vilcu <vsv@dnt.ro>

Google
 
Search Internet Search www.greatcircle.com