Great Circle Associates Majordomo-Users
(November 1994)
 

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

Subject: Re: Techniques for getting binary files through mail ?
From: Mick Farmer <mick @ dcs . bbk . ac . uk>
Date: Wed, 16 Nov 94 11:00:43 +0000
To: Jim Reisert -- PKO3-1/6H -- DTN 223-5747 15-Nov-1994 1121 <reisert @ wrksys . enet . dec . com>
Cc: majordomo-users @ greatcircle . com
In-reply-to: Message from Jim Reisert -- PKO3-1/6H -- DTN 223-5747 15-Nov-1994 1121 <reisert@com.dec.enet.wrksys> on Tue, 15 Nov 94 11:17:37 EST .<9411151617.AA08299@us1rmc.bb.dec.com>
Organisation: Department of Computer Science, Birkbeck College
Postal-address: Malet Street, London WC1E 7HX, England

Dear Jim,

Here's a small hack to shlock.pl that I use.  I store some files
compressed (to save space) and uuencode them when sending
them out by mail.

Regards,

Mick

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

# open a file locked for exclusive access; we remember the name of the lock
# file, so that we can delete it when we close the file

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 |";
    }
    local($status);
    local($tries);

    ...


References:
Indexed By Date Previous: Re: email addresses with a # in them
From: Alan Millar <amillar@bolis.sf-bay.org>
Next: problem with sendmail and large(ish) mailing list
From: Ian A Young <iay@threel.co.uk>
Indexed By Thread Previous: Techniques for getting binary files through mail ?
From: Jim Reisert -- PKO3-1/6H -- DTN 223-5747 15-Nov-1994 1121 <reisert@wrksys.enet.dec.com>
Next: Newbie questions
From: matchett@dao.nrc.ca (Guy Matchett)

Google
 
Search Internet Search www.greatcircle.com