MAILHELP.HLB  —  EXTRACT
    Places a copy of the current message into a sequential text file,
    which Mail places in your current default directory, unless you
    specify otherwise.

    Format

      EXTRACT  file-spec

1  –  Parameter

 file-spec

    Specifies the name of the output file to which the message is
    copied. The default file type is .TXT. By default, the device and
    directory match your current device and directory.

2  –  Qualifiers

2.1    /ALL

    Copies all of the currently selected messages to the specified
    file. Each message is separated by a form feed.

2.2    /APPEND

    Adds the selected message to the end of the specified file. If
    the file does not exist, Mail creates it. When you do not specify
    the /APPEND qualifier, Mail creates a new text file.

2.3    /MAIL

    Specifies that the output file will be a sequential mail
    file with the default file type .MAI and the protection code
    (S:RW,O:RW,G,W). The operating system places the .MAI file
    in your top level mail directory. By default, the protection
    codes of the device and directory match those of your mail file
    directory. Like the /APPEND qualifier, the /MAIL qualifier adds
    the selected message to the end of the specified file.

2.4    /NOHEADER

    Removes the header information (To:, CC:, From:, and Subj:) from
    the mail message.

3  –  Examples

    1.MAIL> DIRECTORY
                                                        MAIL
      #   From    Date             Subject
         .
         .
         .
      5   JOAN    11-DEC-1994      Spelling Tests
         .
         .
         .
      MAIL> 5
      MAIL> EXTRACT GRAMMAR
      MAIL> EXIT
      $ DIRECTORY
         .
         .
         .
      GRAMMAR.TXT;1
         .
         .
         .

      This example shows how to place a copy of a mail message in a
      text file named GRAMMAR.TXT.

    2.MAIL> EXTRACT/ALL/NOHEADER
      _File: OUTER.DAT
      %MAIL-I-CREATED, DISK$MEGAWORK:[CROWN]OUTER.DAT;1 created
      MAIL>

      This example shows how to place a copy of all the messages
      in the currently selected folder into a text file called
      OUTER.DAT. The /NOHEADER qualifier prevents the header
      information from being copied. A form feed is inserted between
      each message.
Close Help