Format: EXTRACT/ATTACHMENT=attachment-number [filename]
NOTE: The /ATTACHMENT qualifier is required with EXTRACT.
This qualifier specifies the number of the attachment as
displayed by the LIST command. In a single part message,
no attachment number is displayed. For this case specify
attachment number one.
EXTRACT extracts the specified attachment to a file in its
native file format or in another format specified by the /FDL
qualifier. By default, the attachment is written to a file in
the default directory, using the name specified by the
Content-Disposition header of the attachment. If no file name
is provided, the program prompts for one. A file name can be
specified in the command to override the value of the
Content-Disposition header.
1 /FDL
/FDL=filename
Specifies a File Descriptor Language (FDL) definition file to use
when converting the specified attachment into an output file. Use
this qualifier when the desired file characteristics differ than
those produced by the MIME utility default settings, or are different
than those specified in the MIME$MAILCAP.DAT file
Note that the /FDL qualifier will override the default FDL file
specified in MIME$MAILCAP.DAT file (if one exists).
FDL files can be created with the ANALYZE/RMS/FDL command and also
created and edited with the EDIT/FDL command.
1.1 – Example to Create a FDL
One way to create a FDL file is from an existing file and type. For
example