Electronic Mail

  1. Communication in UNIX
    1. The mesg command
      mesg [y|n]
    2. The write command
      write <username>
    3. The mail command
      • Create and send a new mail message
      • Read and delete your mail messages
      • Save a mail message
      • Reply to a mail message (and include the original copy)
      • Woops! Undelete a mail message
  2. UNIX E-mail
    1. Mail User Agent (MUA) mail
      Runs in two modes:
      1. Read mode
        You are in read mode when you invoke mail with no arguments.
          Commands:
        • q - quits mail, saving read messages to mbox, leaving unread mail in your system mailbox.
        • h - redisplay the header list of mail messages
        • p# - print mail message number #
        • d# - delete mail message number #
        • r - reply to the current mail message (the one just read)
        • u# - undelete a deleted mail message
        • s filename - save the current message to another mailbox
        • x - quit mail and mark all mail as unread and undeleted.
      2. Write mode
        You are in write or send mode when you invoke mail with arguments specifying the address of the recipients.
        • Subject: provide the subject for your email message
        • Text: type in the text of your message until you are through.
          The type a period (.) on a line by itself.
          Or you can type Control-D
        • Cc: If you don't want to send copies of this email to anyone else, just press the Enter key, and you will be finished.
    2. Mail Transfer Agent (MTA) sendmail
  3. PowerPoint Slides
  4. Other Mail User Agents for UNIX