Great Circle Associates Majordomo-Users
(September 1999)
 

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

Subject: Bug in 'bounce -expire'(1.94.4) -- with patch
From: Martin Maechler <maechler @ stat . math . ethz . ch>
Date: Tue, 21 Sep 1999 08:49:12 +0200
To: majordomo-users @ greatcircle . com
Cc: maechler @ stat . math . ethz . ch
In-reply-to: <199909210603.XAA12457@honor.greatcircle.com>(majordomo-announce-request@greatcircle.com)
References: <199909210603.XAA12457@honor.greatcircle.com>
Reply-to: Martin Maechler <maechler @ stat . math . ethz . ch>

I'm using majordomo for several mailing lists for several years, but only
now decided to start using  bounce, bounce-remind and bounce -expire ...

However, I found that  "bounce -expire" will send mail to "majordomo" by
default which doesn't make sense,
since majordomo of course is piped to "wrapper majordomo..."  which then
complains of getting an incorrect command (and gives the standard help on
using majordomo).

A more useful default to send e-mail to is probably "owner-majordomo".
The following patch (against 1.94.4) does implement this (and has been
tested):

--- bounce.~3~	Mon Sep 20 17:20:53 1999
+++ bounce	Mon Sep 20 19:03:26 1999
@@ -122,14 +122,15 @@
 
 ($sec,$min,$hour,$mday,$mon,$year) = localtime(time-$maxage);
 
+$mail_to = "owner-$majordomo{$list}";# "owner-" is crucial [MM]
 if ($debug) {
     open(MSG, ">&STDOUT");
 } else {
-    open(MSG, "|$MAILER $majordomo{$list}") || 
-	die("open(MSG, \"|$MAILER $majordomo{$list}\"): $!\nStopped");
+    open(MSG, "| $MAILER $mail_to") || 
+	die("open(MSG, \"| $MAILER $mail_to\"): $!\nStopped\n");
 }
 
-print MSG "To: $majordomo{$list}\n";
+print MSG "To: $mail_to\n";
 print MSG "Subject: expired bounces entries\n" if $expire;
 print MSG "\n";



Note: I'm only on majordomo-announce, not on this mailing.
      Please (CC) me when answering...

Martin Maechler <maechler@stat.math.ethz.ch>	http://stat.ethz.ch/~maechler/
Seminar fuer Statistik, ETH-Zentrum  LEO D10	Leonhardstr. 27
ETH (Federal Inst. Technology)	8092 Zurich	SWITZERLAND
phone: x-41-1-632-3408		fax: ...-1228			<><


Indexed By Date Previous: Setting up lists...nearing insanity
From: "Andrew Norman" <Andrew.Norman@CeLTS.monash.edu.au>
Next: sos
From: "fadoua Chakroun" <fadoua1@chickmail.com>
Indexed By Thread Previous: Re: Setting up lists...nearing insanity
From: Rick Green <rtg@mich.com>
Next: sos
From: "fadoua Chakroun" <fadoua1@chickmail.com>

Google
 
Search Internet Search www.greatcircle.com