DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Electronic mail

Saving mail

You can save a mail message you have just read in a file by typing s and the name of the file you want to save the message in, then pressing <Enter>. You can save any mail message in a file by typing s, the number of the message, and the name of the file you want to save it in, and pressing <Enter>.

For example, if you want to save the message ``Promotion'' in a file called fromdoug, you could type s 2 fromdoug:

   SCO System V Mail (Version 3.2)  Type ? for help.
   3 messages:
     >3 susannah Wed Jun 29 15:23  9/237  "Grocery list"
      2 doug     Wed Jun 29  9:00  28/863 "Promotion"
      1 sylvain  Wed Jun 29  8:59  15/391 "Meet you after wo"
   &s 2 fromdoug
   "fromdoug" [New file] 28/863
This creates a new file called fromdoug that contains the mail message from Doug. You can save several messages in the same file by using the same filename each time you save a message. The contents of each message you save will be added to the end of the file as you save them.

Once you have a file that contains several messages, you can use the mail program to read these messages by typing mail -f filename, where filename is the name of the file in which you have saved the messages, then pressing <Enter>. For example, if you wanted to use the mail program to look back at the message from Doug, you could type mail -f fromdoug:

   $ mail -f fromdoug
   1 message
    1 doug     Wed Jun 29  9:00  28/863 "Promotion"
   _

Next topic: Deleting and recovering mail
Previous topic: Getting help

© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 26 May 2005