From: jem@sunsite.unc.edu (Jonathan Magid)
Newsgroups: comp.os.linux.announce
Subject: Sunsite ftpmail return
Message-ID: <1993Mar10.072126.7362@klaava.Helsinki.FI>
Date: 10 Mar 93 07:21:26 GMT
Approved: linux-announce@tc.cornell.edu (Lars Wirzenius)

Sunsite's ftpmail service has returned.

It seems to work more or less flawlessly... but not quite.

We have been using Lee McLoughlin's ftpmail scripts, and have had some
problems with them; that is why ftpmail has been hibernating.
The problem that caused its hibernation is mostly fixed; but if one of
your transfers is too large (more than 3 or so megabytes) the script
will die.

you will receive that file and all the files before it, but no log of the 
transfer and none of the files after the really big one.

Hopefully, this will be fixed, as I have found the problem, 
but in the meantime, we can make do....

send requests to ftpmail@sunsite.unc.edu; any requests that can't be
parsed send back the following error message



Valid commands to the email-ftp gateway are:

reply-to email-address		Who to send the response to.  Defaults to
				 your incoming email address
open [site [user [pass]]]	Site to ftp to.  Defaults are
				 sunsite.unc.edu anonymous reply-to-address.
cd pathname			change directory.
ls [pathname]			short listing of pathname. Default pathname
				 is current directory.
dir [pathname]			long listing of pathname. Default pathname
				 is current directory.
get pathname			get a file and email it back.

compress			compress files/dir-listings before emailing back

uuencode
btoa
				These are mutually exclusive options for
				converting a binary file before emailing.
				(Default is uuencode)
force uuencode
force btoa
				Force all files or directory listings to
				be encoded before sending back.
				There is no default.

mode binary
mode ascii
				change the mode selected for the get
				command.  Defaults to binary.
quit				End of input - ignore any following lines.



Example scripts are:

open
dir
quit
	Connect to sunsite.unc.edu and send back the contents of the top level
	directory


reply-to jem@lambada.oit.unc.edu
open
cd unix
get buffer.shar
quit
	Connect to sunsite.unc.edu and send back the file buffer.shar to
	jem@lambada.oit.unc.edu


open sunsite.unc.edu
cd /pub/Linux
get 00-find.Linux
cd ../X11/contrib
compress
ls -ltra
quit
	Connect to sunsite.unc.edu, send back the file 00-find.Linux.Z in
	/pub/Linux, which is a listing of all files in the Linux area.
	As this is a binary file it has to be transfered
	in binary mode.  Because it is binary it will automagically
	be uuencoded (the default binary encoder).  Then change to ../contrib
	and mail back a compressed directory listing.  Although compressing ls
	output makes it binary, which then has to be encoded, it still ends up
	smaller than the original.

open
cd /pub/X11/contrib/R5fixes
get fix-08
get fix-09
get sunGX.uu
quit
	Retrieve some recent X fixes

	
open
cd gnu
atob
mode binary
get emacs-18.59.tar.Z
quit
	
	Retrieve the newest version of GNU Emacs in atob format	



jem.
