Great Circle Associates Majordomo-Workers
(June 1995)
 

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

Subject: Re: Compressed archives?
From: Mick Farmer <mick @ dcs . bbk . ac . uk>
Date: Tue, 06 Jun 95 15:14:14 +0100
To: Daniel R Ehrlich <ehrlich @ cse . psu . edu>
Cc: majordomo-workers @ greatcircle . com, majordomo-users @ greatcircle . com
In-reply-to: Message from Daniel R Ehrlich <ehrlich@cse.psu.edu> on Tue, 6 Jun 1995 09:32:29 -0400 .<95Jun6.093240edt.45660@colossus.cse.psu.edu>
Organisation: Department of Computer Science, Birkbeck College
Postal-address: Malet Street, London WC1E 7HX, England

Dear Dan,

I keep most of our majordomo archives compressed.  I put a
small hack into the function lopen which automatically
uuencoded such files before returning them to the requester. 
Most of the hack is code to get the correct filename.  Below
are the first few lines of the function, which can be found
in the file shlock.pl. 

Regards,

Mick

8<--------8<--------8<

sub main'lopen {
    local($FH) = shift;
    local($mode) = shift;
    local($file) = shift;
    # $fm is what will actually get passed to open()
    local($fm) = "$mode$file";
    #
    # local hack by mick@dcs.bbk.ac.uk
    #
    if ($mode !~ '>' && -B $file) {
	local($myfile) = $file;
	$myfile =~ s%^.*/%%;
	$fm = "uuencode $file $myfile |";
    }
    ... remainder deleted



References:
Indexed By Date Previous: Compressed archives?
From: Daniel R Ehrlich <ehrlich@cse.psu.edu>
Next: Re: Compressed archives?
From: Dave Barr <barr@math.psu.edu>
Indexed By Thread Previous: Compressed archives?
From: Daniel R Ehrlich <ehrlich@cse.psu.edu>
Next: Re: Compressed archives?
From: Dave Barr <barr@math.psu.edu>

Google
 
Search Internet Search www.greatcircle.com