#!/usr/bin/perl # send a reminder to folks on a bounce list # Brent Chapman Great Circle Associates # Brent@GreatCircle.COM 1057 West Dana Street # +1 415 962 0841 Mountain View, CA 94041 # $Source: /sources/cvsrepos/majordomo/bounce-remind,v $ # $Revision: 1.9 $ # $Date: 1996/12/09 16:49:46 $ # $Author: cwilson $ # $State: Exp $ # # $Locker: $ # $main'program_name = 'mj_bounce-remind'; # Read and execute the .cf file $cf = $ENV{"MAJORDOMO_CF"} || "/etc/majordomo.cf"; if ($ARGV[0] eq "-C") { $cf = $ARGV[1]; shift(@ARGV); shift(@ARGV); } if (! -r $cf) { die("$cf not readable; stopped"); } require "$cf"; # Go to the home directory specified by the .cf file chdir("$homedir"); # All these should be in the standard PERL library unshift(@INC, $homedir); # Set these here so that they can be interploated on the $mailer command line. $sender = "nobody\@$whereami"; $to = "Bounces\@$whereami"; $from = "nobody\@$whereami"; $subject = "Bouncing email from mailing lists at $whereami"; $mail_cmd = eval qq/"$mailer"/; open(MSG, "|$mail_cmd bounces\@$whereami") || die("open(MSG, \"|$mail_cmd bounces\@$whereami\"): $!\nStopped"); print MSG <) { print MSG "\t$_"; } close(LIST); print MSG <