Subject: How to FTP by Mail
From: [email-masked] (Lepez Philippe)
Date: Sun, 4 Apr 1993 09:30:23 GMT

Hi All,

As promised, you will find below 2 ways of FTP by Mail. Only "GET" is available. 
I didn't try any of them, but the guy who gives me the info tried <[email-masked]> with success.

We now need an FTP site, and things to FTP. Can I suggest to put there the FAQ, the papers by Ron Reich and others of a more durable nature than most of our talk. 
BTW. if we go for such a scheme, the FAQ may not be send to everybody but just a word saying 'there is a new FAQ with that and that new'.

Good winds.

Ps. Could someone tell me how to transform Postscript into Encapsulated Postscript, if it is easy. Thanks in advance.

----- Begin Included Message -----

Date: Fri, 26 Mar 93 03:35:23 EST
From: File Transfer by Mail <[email-masked]>

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 [email-masked]
quit
	Connect to sunsite.unc.edu and send back the file buffer.shar to
	[email-masked]

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

----- End Included Message -----

----- Begin Included Message -----

Date: Fri, 26 Mar 93 00:35:37 -0800
From: "ftpmail service on ftp-gw-1.pa.dec.com" <[email-masked]>

  -- Help --
>>> $Id: help-text,v 1.6 1993/02/16 14:55:03 vixie Exp vixie $
>>>
>>> commands are:

	reply <MAILADDR>	set reply addr, since headers are usually wrong
	connect [HOST [USER [PASS [ACCT]]]]
				defaults to gatekeeper.dec.com, anonymous
	ascii			files grabbed are printable ascii
	binary			files grabbed are compressed or tar or both
	chdir PLACE		"get" and "ls" commands are relative to PLACE
					(only one CHDIR per ftpmail session,
					and it executes before any LS/DIR/GETs)
	compress		compress binaries using Lempel-Ziv encoding
	compact			compress binaries using Huffman encoding
	uuencode		binary files will be mailed in uuencode format
	btoa			binary files will be mailed in btoa format
	chunksize SIZE		split files into SIZE-byte chunks (def: 64000)
	ls (or dir) PLACE	short (long) directory listing
	index THING		search for THING in ftp server's index
	get FILE		get a file and have it mailed to you
					(max 10 GET's per ftpmail session)
	quit			terminate script, ignore rest of mail message
					(use if you have a .signature or
					 are a VMSMAIL user)

>>> notes:

	-> you should send complaints to the ftpmail-admin address.  our
	   postmaster does not handle ftpmail problems and you can save her
	   the trouble of forwarding your complaints by just mailing them to
	   the right address.  the "ftpmail-request" address is gone; don't
	   use it.

	-> the "index" command depends on the "SITE EXEC INDEX" feature of
	   some ftp servers.  Gatekeeper.dec.com originated this feature,
	   and ftp.uu.net duplicated it (with a format change to the output,
	   naturally).  Wuarchive.wustl.edu also has this feature, though
	   their index seems to be empty.  The source for an ftpd that
	   supports this feature is on Gatekeeper.DEC.COM in /pub/DEC/gwtools.

	-> a password of "" or '' will be sent as a null string.  if you need
	   this you will know it, if you don't, you won't.

	-> the "Subject:" of your request will be contained in the "Subject:"
	   of all of ftpmail's responses to you regarding that request.  You
	   can therefore use it to "tag" different requests if you have more
	   than one outstanding at any given time.

	-> you must give a "connect" command, default host is
	   gatekeeper.dec.com, default user is anonymous, default
	   password is your mail address with a hyphen prepended.

	-> binary files will not be compressed unless 'compress' or 'compact'
	   command is given; use this if at all possible, it helps a lot.
	   note that many files are already compressed.  if you use any of
	   the binary-file qualifiers (compress, compact, uuencode, btoa)
	   without setting 'binary' first, your session will abort in error.

	-> binary files will always be formatted into printable ASCII
	   with "btoa" or "uuencode" (default is "btoa").  if you don't
	   use the "binary" command, ftpmail will cheerfully try to mail
	   you the binary data, which will absolutely, positively fail.

	-> all retrieved files will be split into chunks and mailed.  the
	   size of the chunk is 64000 characters unless you change it with
	   the "chunksize" command.  CompuServe users will need to set this
	   to 49000.  there is no way to set it higher than 100000, so please
	   don't ask.

	-> if you ask for more than 10 files in a session, you will receive
	   an error message and your entire request will be rejected.

	-> VMS/DOS/Mac versions of uudecode, atob, compress and compact
	   are available, ask your LOCAL wizard about them if you can't
	   locate them (but try gatekeeper.dec.com in /archive/pub/VMS
	   if you're still using a VMS system.)

	-> several mail unsplitters are hiding on gatekeeper.dec.com in
	   /pub/mail/ua/misc/unsplit.  there is one in c, one in perl,
	   and one in VMS DCL.

	-> there is no way to request only certain parts of a file and we
	   do not plan to add one in the near future, so please don't ask.

	-> there is no way to delete things from the queue or to find out
	   the status of things in the queue, and we do not plan to add
	   either feature in the near future, so please don't ask.

>>> examples:

	-> connect to gatekeeper.dec.com and get a root directory listing:
		connect
		ls
		quit

	-> connect to gatekeeper.dec.com and get the README.ftp file:
		connect
		get README.ftp
		quit

	-> connect to gatekeeper.dec.com and get the gnuemacs sources:
		connect
		binary
		uuencode
		chdir /pub/GNU
		get emacsinary
		chdir /index/master
		get by-name.Z
		quit

Ftpmail was written by Paul Vixie at the DEC Western Research Laboratory
and at the DEC Network Systems Laboratory, from 1989-1993.

  -- End of Help --

----- End Included Message -----

-- 
Philippe Lepez       (CP 125), |                           |       Good kite
Universite Libre de Bruxelles, | Email: [email-masked]   | +     Good wind
50 av. Roosevelt,              | Phone: 32.2.6503553       | ----------------
1050 Bruxelles,      Belgique. | Fax  : 32.2.6503323       | = A lot of fun !

 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =

Date: Sun, 4 Apr 1993 09:30:23 GMT
From: [email-masked] (Lepez Philippe)
Message-ID: <[email-masked]>
Organization: Division of Applied Sciences, Harvard University
Subject: How to FTP by Mail

Hi All,

As promised, you will find below 2 ways of FTP by Mail. Only "GET" is available. 
I didn't try any of them, but the guy who gives me the info tried <[email-masked]> with success.

We now need an FTP site, and things to FTP. Can I suggest to put there the FAQ, the papers by Ron Reich and others of a more durable nature than most of our talk. 
BTW. if we go for such a scheme, the FAQ may not be send to everybody but just a word saying 'there is a new FAQ with that and that new'.

Good winds.

Ps. Could someone tell me how to transform Postscript into Encapsulated Postscript, if it is easy. Thanks in advance.

----- Begin Included Message -----

Date: Fri, 26 Mar 93 03:35:23 EST
From: File Transfer by Mail <[email-masked]>

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 [email-masked]
quit
	Connect to sunsite.unc.edu and send back the file buffer.shar to
	[email-masked]

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

----- End Included Message -----

----- Begin Included Message -----

Date: Fri, 26 Mar 93 00:35:37 -0800
From: "ftpmail service on ftp-gw-1.pa.dec.com" <[email-masked]>

  -- Help --
>>> $Id: help-text,v 1.6 1993/02/16 14:55:03 vixie Exp vixie $
>>>
>>> commands are:

	reply <MAILADDR>	set reply addr, since headers are usually wrong
	connect [HOST [USER [PASS [ACCT]]]]
				defaults to gatekeeper.dec.com, anonymous
	ascii			files grabbed are printable ascii
	binary			files grabbed are compressed or tar or both
	chdir PLACE		"get" and "ls" commands are relative to PLACE
					(only one CHDIR per ftpmail session,
					and it executes before any LS/DIR/GETs)
	compress		compress binaries using Lempel-Ziv encoding
	compact			compress binaries using Huffman encoding
	uuencode		binary files will be mailed in uuencode format
	btoa			binary files will be mailed in btoa format
	chunksize SIZE		split files into SIZE-byte chunks (def: 64000)
	ls (or dir) PLACE	short (long) directory listing
	index THING		search for THING in ftp server's index
	get FILE		get a file and have it mailed to you
					(max 10 GET's per ftpmail session)
	quit			terminate script, ignore rest of mail message
					(use if you have a .signature or
					 are a VMSMAIL user)

>>> notes:

	-> you should send complaints to the ftpmail-admin address.  our
	   postmaster does not handle ftpmail problems and you can save her
	   the trouble of forwarding your complaints by just mailing them to
	   the right address.  the "ftpmail-request" address is gone; don't
	   use it.

	-> the "index" command depends on the "SITE EXEC INDEX" feature of
	   some ftp servers.  Gatekeeper.dec.com originated this feature,
	   and ftp.uu.net duplicated it (with a format change to the output,
	   naturally).  Wuarchive.wustl.edu also has this feature, though
	   their index seems to be empty.  The source for an ftpd that
	   supports this feature is on Gatekeeper.DEC.COM in /pub/DEC/gwtools.

	-> a password of "" or '' will be sent as a null string.  if you need
	   this you will know it, if you don't, you won't.

	-> the "Subject:" of your request will be contained in the "Subject:"
	   of all of ftpmail's responses to you regarding that request.  You
	   can therefore use it to "tag" different requests if you have more
	   than one outstanding at any given time.

	-> you must give a "connect" command, default host is
	   gatekeeper.dec.com, default user is anonymous, default
	   password is your mail address with a hyphen prepended.

	-> binary files will not be compressed unless 'compress' or 'compact'
	   command is given; use this if at all possible, it helps a lot.
	   note that many files are already compressed.  if you use any of
	   the binary-file qualifiers (compress, compact, uuencode, btoa)
	   without setting 'binary' first, your session will abort in error.

	-> binary files will always be formatted into printable ASCII
	   with "btoa" or "uuencode" (default is "btoa").  if you don't
	   use the "binary" command, ftpmail will cheerfully try to mail
	   you the binary data, which will absolutely, positively fail.

	-> all retrieved files will be split into chunks and mailed.  the
	   size of the chunk is 64000 characters unless you change it with
	   the "chunksize" command.  CompuServe users will need to set this
	   to 49000.  there is no way to set it higher than 100000, so please
	   don't ask.

	-> if you ask for more than 10 files in a session, you will receive
	   an error message and your entire request will be rejected.

	-> VMS/DOS/Mac versions of uudecode, atob, compress and compact
	   are available, ask your LOCAL wizard about them if you can't
	   locate them (but try gatekeeper.dec.com in /archive/pub/VMS
	   if you're still using a VMS system.)

	-> several mail unsplitters are hiding on gatekeeper.dec.com in
	   /pub/mail/ua/misc/unsplit.  there is one in c, one in perl,
	   and one in VMS DCL.

	-> there is no way to request only certain parts of a file and we
	   do not plan to add one in the near future, so please don't ask.

	-> there is no way to delete things from the queue or to find out
	   the status of things in the queue, and we do not plan to add
	   either feature in the near future, so please don't ask.

>>> examples:

	-> connect to gatekeeper.dec.com and get a root directory listing:
		connect
		ls
		quit

	-> connect to gatekeeper.dec.com and get the README.ftp file:
		connect
		get README.ftp
		quit

	-> connect to gatekeeper.dec.com and get the gnuemacs sources:
		connect
		binary
		uuencode
		chdir /pub/GNU
		get emacsinary
		chdir /index/master
		get by-name.Z
		quit

Ftpmail was written by Paul Vixie at the DEC Western Research Laboratory
and at the DEC Network Systems Laboratory, from 1989-1993.

  -- End of Help --

----- End Included Message -----

-- 
Philippe Lepez       (CP 125), |                           |       Good kite
Universite Libre de Bruxelles, | Email: [email-masked]   | +     Good wind
50 av. Roosevelt,              | Phone: 32.2.6503553       | ----------------
1050 Bruxelles,      Belgique. | Fax  : 32.2.6503323       | = A lot of fun !

 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =