9.2 RECEIVING FILES
If somebody sends you a file through the mail, you'll have to go through a couple of steps to get it into a form you can actually use. If you are using the simple mail program, go into mail and type
w # file.name
where # is the number of the message you want to transfer and file.name is what you want to call the resulting file. In pine, call up the message and hit your O key and then E. You'll then be asked for a file name. In elm, call up the message and hit your S key. You'll get something that looks like this:
=file.request
Type a new file name and hit enter (if you hit enter without typing a file name, the message will be saved to another mail folder, not your home directory). In all three cases, exit the mail program to return to your host system's command line. Because the file has been encoded for mail delivery, you now have to run a decoder. At the command line, type
uudecode file.name
where file.name is the file you created while in mail. Uudecode will create a new, uncompressed binary file. In some cases, you may have to run it through some other programs (for example, if it is in "tar" form), but generally it should now be ready for you to download to your own computer (on which you might then have to run a de-compressor program such as PKXZIP).
9.3 FILES TO NON-INTERNET SITES
What if your friend only connects with a non-Unix system, such as CompuServe or MCIMail? There are programs available for MS-DOS, Apple and Amiga computers that will encode and decode files. Of course, since you can't send one of these programs to your friend via e-mail (how would she un-encode it?), you'll have to mail (the old-fashioned way) or give her a diskette with the program on it first. Then, she can get the file by e-mail and go through the above process (only on her own computer) to get a usable file. Remember to give her an encoder program as well, if she wants to send you files in return. For MS-DOS machines, you'll want to get uunecode.com and uudecode.com. Both can be found through anonymous ftp at wuarchive.wustl.edu in the /mirrors/msdos/starter directory. The MS- DOS version is as easy to use as the Unix one: Just type