Great Circle Associates Majordomo-Users
(July 1996)
 

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

Subject: Re: Cludge for archive aborts
From: Dave Wolfe <dwolfe @ risc . sps . mot . com>
Date: Fri, 26 Jul 1996 21:51:25 -0500 (CDT)
To: mjames @ xicom . com (Michael S. James)
Cc: majordomo-users @ greatcircle . com
In-reply-to: <Pine.LNX.3.91.960724164946.8941A-100000@noah.xicom.com> from "Michael S. James" at Jul 24, 96 05:16:05 pm
Reply-to: Dave Wolfe <david_wolfe @ risc . sps . mot . com>

[ Michael S. James writes: ]
> 
> Being the hack programmer that I am, I decided to take an easy way out of 
> the 'Invalid archive directory' aborts.  I'll present the cludge to see 
> if anyone knows of any SERIOUS problems with it.
[...]
> I've been grappling with a portion of the archive2.pl script which causes 
> problems with my system for some reason.  The code and the cludge are 
> presented side by side below.
> 
> 					Cludge	
> [snip]					======
> undef $valid_dir;
> foreach $dir (@archive_dirs) {
>     if ($dir eq $dirname) {		if ($dirname eq $dirname) ....
>         $valid_dir = $dirname;
>         last;
>     }
> }
> 
> That one line was all I changed.  The archive file is not saved in the
> @archive_dirs directory, but directory up in the path.  That's fine.  I 
> can adjust the pathnames in /etc/aliases & majordomo.cf accordingly to put 
> the files where I want.

I really don't recommend doing this. That check is in there for your
protection. All you have to do is enter the proper directory names (yes,
you can have more than one, or even the glob I showed in an earlier
message) in @archive_dirs. If you still have questions as to the values
for @archive_dirs and the -f parameter on the resend alias, I'll try to
answer them via e-mail.

BTW, it's "a stitch in time saves nine". Aka "an ounce of prevention is
worth a pound of cure". Checking for a valid archive directory is the
prevention. Your cure has about 15.999999999999 ounces (US) to go. ;-)

-- 
 Dave Wolfe    *Not a spokesman for Motorola*
 Motorola MMTG  6501 Wm. Cannon Dr. W. OE112  Austin  TX  78735-8598


Follow-Ups:
References:
Indexed By Date Previous: Re: BOUNCE .......non-member submission from.....
From: jeffw@smoe.org (Jeff Wasilko)
Next: Re: BOUNCE .......non-member submission from.....
From: Jason L Tibbitts III <tibbs@hpc.uh.edu>
Indexed By Thread Previous: Cludge for archive aborts
From: "Michael S. James" <mjames@xicom.com>
Next: Re: Cludge for archive aborts
From: bill@celestial.com (Bill Campbell)

Google
 
Search Internet Search www.greatcircle.com