| Previous | Contents | Index | 
Set the file reading mode.
MODE mode
mode
Required parameter specifying the file reading mode in which files are to be accessed. There are two supported modes:TEXTandBLOCK.
Files can be read (accessed) in a variety of ways. The
MODEcommand controls the method used to read the files the mail server returns. Note that default modes apply automatically to various sorts of files; this command provides a way to override these defaults.The possible values for mode are:
TEXT Read files as ordinary text files. In TEXTmode, files are read as a sequence of records and sent as ordinary text.TEXTmode is the default for files when no other mode has been set.BLOCK Read files as raw binary data. Any record boundary information, including carriage returns, line feeds, line length counts, and indexing information for indexed files simply becomes part of the data. The resulting data typically can only be used on the computer system it is intended for. (Note that this is not necessarily restricted to UNIX; it is possible to store files intended for other systems as UNIX files.) This is the recommend mode to use for binary files. The reading mode specified with the
MODEcommand applies to all subsequent SEND commands in the same message. It may be overridden with a subsequentMODEcommand, or, on a per command basis, with theSENDcommand's/MODEqualifier. And, of course, reading modes established in previous messages sent to the server have no effect on subsequent messages which you might send.See the
SENDcommand description for further information on the usage of this command.
The commands,
set the default reading mode to
MODE BLOCK ENCODING BASE64 SEND gif/boats*.gif SEND/MODE=TEXT gif/index.txtBLOCKand the default file encoding toBASE64. Any files matching the specificationgif/boats*.gifwill be sent using these defaults. However, the filegif/index.txtwill be sent as an ordinary text file owing to the use of the/MODE=TEXTqualifier.
      
%MAILSERV-W-IVKEYW, unrecognized keyword - check validity and spelling 
      
      
     | 
  
You specified an unknown mode. Resend the command specifying a legal value for the mode parameter.
      
%MAILSERV-W-INSFPRM, missing command parameters 
      
      
     | 
  
You failed to specify the mode parameter. Resend the command specifying a legal value for the mode parameter.
| Previous | Next | Contents | Index |