Columbia MM
MM Manual

USING MULTIPLE MAIL FILES

You can create additional mail files by using the copy or move commands to copy mail you have received, or by using the fcc command or saved-messages-file variable to keep messages you send.

One mail file, usually named mbox, is the main mail file, where all incoming mail is received. Use additional mail files to organize your mail in any way that is logical to you. You can move around easily from one mail file to another with the get or examine commands.


GET

Use the command get with the name of any mail file to visit that file. All MM commands will then apply to that mail file. The mail file you are visiting is known as the current mail file.



MM>get oldmail
MM>


In the above example, oldmail is a mail file, that is, a file of mail messages.

If you use the question mark after the command get, you will see listed all the files in your mail-directory. Some may not be mail files. If you try to get a non-mail file, you will see an error message:



MM>get ? mail file
 .               ..              .mmfast         .mminit         .noteseq
 .notesrc        .plan           .plan~          .profile        .project
 .project~       .sh_history     .signature      mbox            mbox~
 oldmail         subways
MM>get subways
File is damaged or in unknown format: /f/u1/d00000/yourid/subways
MM>


The error message is not a problem unless subways is supposed to be a mail file. If it is actually a file of text you were writing, or a program, or anything else, then the error message is just stating that the file can't be read as a mail file, which makes sense. If it is a mail file, contact your systems staff for help; the damage could be very minor, even one character added or missing at certain locations.

To return to your main mail file, mbox, you can specify it by typing get mbox, or just type get.



MM>get
MM>



EXAMINE

The examine command is the same as get, except that examine allows only what is called read-only access. If you visit a mail file with examine, the mail file on your disk will not be changed, no matter what commands you give.



MM>examine oldmail
MM>


One reason to use examine is to protect a file from accidental changes. For example, you might keep some very important messages in a separate mail file, and only examine that file to avoid any chance of deleting them.

Another use of examine is to look at someone else's file, if they have changed the file permissions to allow you to do so. Only one MM process (session) at a time can get a file, but multiple processes may examine it. The reason for the rule is that get access allows changing the file, and strange things could result if two or more processes were trying to make different changes to one file. Read-only access with examine presents no such problems.

If you examine your main mail file, mbox, you cannot receive new mail or mark message