Ftpmail Help

Brackets "[]" around an argument to a command are optional.

Valid commands to the ftpmail gateway are:

reply-to email-address
Who to send the response to. This is optional and defaults to the email address you use to send the message.

Followed by one of:

help
Just Send back the help file containing a list of the valid commands.
delete jobid
Delete the given job
open [site [user [pass]]]

Site to ftp to. Defaults are

salton.cs.tamu.edu anonymous reply-to-address.

If there was an open then it can be followed by up to 100 of the following commands

cd pathname
Change directory (for example: cd pub/dlconfs).
ls [pathname]
List files and directories in pathname. Defaults to current directory.
dir [pathname]
Long files and directories in pathname with additional information, such as size and date of creation. Defaults to current directory.
get pathname
Retrieve a file (for example "get pub/dlconfs/lslR").
compress
Use the Unix Compress program to shrink files and directory listings before having them sent back to you.
gzip
Use the Free Software Foundation's GNU Zip program to shrink files and directory listings before having them sent back to you.
uuencode
Converting a binary (non-plain text or HTML) file, such as an image, before emailing.
force uuencode
Force all files or directory listings to be encoded before sending back. There is no default.
mime
Send the message as a Mime Verson 1.0 message. Text will be sent as text/plain charset=US-ASCII, non-text as application/octet-stream. If the file is split up then it will be sent as a message/partial. Mime stands for "Multi-media Internet Mail Extension", and allows e-mail to contain binary information, such as images.
charset=US-ASCII
Non-text as application/octet-stream. If the file is splitup then it will be sent as a message/partial.
force mime
Behaves identically to "mime" but forces text files to be sent as application/octet-stream.
no [compress|gzip|uuencode|btoa|mime]
Turn the option off (for example: "no compress" will cause "get" commands following it to return uncompressed copies of the files).
size num[K|M]
Set the maximum size a file can be before it is split up and sent back in parts to the given number of Kilo or Mega bytes. There is a maximum size limitation.
mode binary or mode ascii
Changes the mode selected for the "get" command. This defaults to binary, and in most cases, you will not want to change it.
quit
End of input - ignore any following lines. Useful when your email program is configured to automatically append a signature to your messages.

Example Scripts

open
dir
quit

Connect to salton.cs.tamu.edu and send back the the top level directory.

Sample Output for the above script

reply-to userid@salton_isr
open
cd pub/dlconfs
get lslR
quit

Connect to salton.cs.tamu.edu, and send back the file lslR (the list of the files available in the Preceedings Archives) to userid@salton_isr.

reply-to userid@salton_isr
open ftp.cs.tamu.edu
cd /pub/mosaic/windows/Win95
gzip
mime
get mosaic21.exe
quit

Connect to ftp.cs.tamu.edu, and send back the file mosaic21.exe (2MB)(gzipped and mime encoded) to userid@salton_isr.


Last modified: Dec. 11, 1996, Comment to cchung@cs.tamu.edu