home *** CD-ROM | disk | FTP | other *** search
/ Unix System Administration Handbook 1997 October / usah_oct97.iso / rfc / 200s / rfc278.txt < prev    next >
Text File  |  1997-03-04  |  8KB  |  223 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7. NWG/RFC# 278                            RWW 17-NOV-71 14:12  8056
  8. Revision of the Mail Box Protocol
  9.  
  10. NETWORK WORKING GROUP             Abhay Bhushan, MIT-DMCG
  11. Request for Comments #278         Bob Braden, UCLA-CCN
  12. NIC 8056                          Eric Harslem, RAND
  13. Categories: A.5, O.7              John Heafner, RAND
  14. Obsoletes RFC 221, NIC 7612       Alex McKenzie, BBN-NET
  15.                                   John Melvin, SRI-ARC
  16.                                   Bob Sundberg, HARV
  17.                                   Dick Watson, SRI-ARC
  18.                                   Jim White, UCSB
  19.                                   17-Nov-1971
  20.  
  21.                    REVISION OF THE MAIL BOX PROTOCOL
  22.  
  23.    The file transfer committee met and discussed the Mail Box Protocol
  24.    RFC 221, NIC 7612.  The potential utility for the mechanism was
  25.    confirmed and a couple of changes suggested.  We first give the
  26.    changes and then restate the Protocol.
  27.  
  28.                                   CHANGES
  29.  
  30.    1) The Mail Box Protocol is only to allow ASCII stings of text
  31.    formatted for a network standard line printer rather than allowing
  32.    other data types.
  33.  
  34.    2) A new command is to be added to the File Transfer Protocol called
  35.    "Append With Create" which appends to a file if the file exists, and
  36.    creates a file if it does not exist.
  37.  
  38.    3) The standard path name for the mailbox is to be, using conventional
  39.    metalanguage symbols,
  40.  
  41.       "MAIL" <separator> ("PRINTER"/<ident>)
  42.  
  43.       <separator> is the ASCII GS, octal 035.  The semantics of
  44.       the above are the following:
  45.  
  46.       <ident> is a NIC IDENT
  47.  
  48.       "MAIL" <separator> "PRINTER" would be interpreted by the
  49.       receiving site as meaning Append With Create the
  50.       transmitted file to a bulk mail file to be printed or
  51.       directly output it to a printer.
  52.  
  53.       "MAIL" <separator> <ident> would be interpreted to mean
  54.       either
  55.  
  56.  
  57.  
  58.  
  59.                                                                 [Page 1]
  60.  
  61. NWG/RFC# 278                            RWW 17-NOV-71 14:12  8056
  62. Revision of the Mail Box Protocol
  63.  
  64.          1) The same as "MAIL" <separator> "PRINTER" i.e., ignore
  65.          <ident> or
  66.  
  67.          2) Append With Create the following file to a file
  68.          specifically for the person designated by <ident> for
  69.          either online access or printing or both.
  70.  
  71.    The problem of delivering mail to TIPs was discussed.
  72.  
  73.    At the moment TIPs support only the Telnet Protocol, but it is planned
  74.    to support the Data Transfer Protocol.  TIPs will have an ASCII line
  75.    printer available as an optional device.  People desiring to send a
  76.    mail item to a TIP with a printer can open a standard published socket
  77.    and transmit to it with Telnet Protocol now, later also with the Data
  78.    Transfer Protocol.  The NIC's plans with regard to TIPs is not to do
  79.    automatic network delivery to them.  Messages to people using TIPs can
  80.    be sent to them through the NIC and will be delivered as with everyone
  81.    else directly to the person's initial file at the NIC. The TIP user
  82.    can read the item online or obtain a hardcopy at his terminal with the
  83.    Output Device Teletype command of NLS.
  84.  
  85.                            MAIL BOX PROTOCOL
  86.  
  87.    The Mail Box Protocol will use established network conventions,
  88.    specifically the Network Control Program, Initial Connection Protocol,
  89.    Data Transfer Protocol, and File Transfer Protocol (as described in
  90.    current Network Protocols, NIC 7104).
  91.  
  92.    The transmission is to be Network ASCII.  The standard receiving mail
  93.    printer is assumed to have a print line 72 characters wide, and a page
  94.    of 66 lines.  The new line convention will be carriage return (Hex
  95.    per the Telnet Protocol, RFC 158, NIC 6768.  The standard printer will
  96.    accept form feed character (Hex '0C') (Octal '014') as meaning move
  97.    paper to the top of a new page.
  98.  
  99.    It is the sender's responsibility to control the length of the print
  100.    line and page.  If more than 72 characters per line are sent, or if
  101.    more than 66 line are sent without a form feed, then the receiving
  102.    site can handle these situations as appropriate for them.  These
  103.    conventions can be changed by control codes as described below.  At
  104.    the head of the message or document sent there is to be two copies of
  105.    an initial address string each terminated by a form feed.  This
  106.    address string is to contain the sender's name and address, and the
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.                                                                 [Page 2]
  114.  
  115. NWG/RFC# 278                            RWW 17-NOV-71 14:12 8056
  116. Revision of the Mail Box Protocol
  117.  
  118.    receiver's name and address formatted in some reasonable, easy-to read
  119.    form for a clerk to read and distribute.  Comments could also be
  120.    included in the address string.  The requirements for two copies are
  121.    to make one readable from a fan fold paper stack without effort.
  122.  
  123.    Initial Connection
  124.  
  125.    Initial Connection will be as per the Official Initial Connection
  126.    Protocol, Document #2, NIC 7101, to the standard File Transfer socket
  127.    #3.
  128.  
  129.    File Transfer
  130.  
  131.    The mail item (file) to be transferred would be transferred according
  132.    to the File Transfer Protocol.
  133.  
  134.    As per the File Transfer Protocol, a file (mail item) can be sent in
  135.    more than one data transaction as defined in the Data Transfer
  136.    Protocol.  End of file is indicated by the file separator (as defined
  137.    in Data Transfer Protocol) or by closing the connection.
  138.  
  139.    Order of Transactions
  140.  
  141.    The only basic operation required is an Append With Create
  142.  
  143.                    Append With Create Request
  144.  
  145.      (Mailer) User -------------------->  Server (Mail Box)
  146.  
  147.                           <File -  data>
  148.  
  149.                       -------------------->
  150.  
  151.                      End of File indication
  152.  
  153.                       -------------------->
  154.  
  155.                            Acknowledge
  156.  
  157.                       <--------------------
  158.  
  159.    The data type default is network ASCII.  The Standard line printer
  160.    default is as defined above.  Other control transactions can be used.
  161.  
  162.                     CONTROL TRANSACTIONS TO BE USED
  163.  
  164.  
  165.  
  166.  
  167.                                                                 [Page 3]
  168.  
  169. NWG/RFC# 278                            RWW 17-NOV-71 14:12 8056
  170. Revision of the Mail Box Protocol
  171.  
  172.       OP CODE
  173.  
  174.      Hex     Octal
  175.  
  176.       09       011      Error or unsuccessful terminate
  177.  
  178.       0A      012      Acknowledge or successful terminate
  179.  
  180.       05      005       Append With Create request (add to
  181.                         existing file or create file if
  182.                         none exists)
  183.  
  184.       5A      132       Change printer control settings
  185.  
  186.                               ERROR CODES
  187.  
  188.    All error codes defined in the file Transfer Protocol could be
  189.    returned.
  190.  
  191.                          PRINTER CONTROL CODES
  192.  
  193.      Hex     Octal
  194.  
  195.       D1      321       Meaning: Set line width to 72 characters
  196.  
  197.       D2      322       Meaning: Use the full width of your printer
  198.  
  199.       03      323       Meaning: Set page size to 66 line
  200.  
  201.       04      324       Meaning: Set page size to infinite
  202.  
  203.    Other virtual printer control codes can be added in the future.
  204.  
  205.    Other classes of control codes can be added as the need arises.
  206.  
  207.  
  208.        [ This RFC was put into machine readable form for entry ]
  209.        [ into the online RFC archives by BBN Corp. under the   ]
  210.        [ direction of Alex McKenzie.                   12/96   ]
  211.  
  212.  
  213.  
  214.  
  215.  
  216.  
  217.  
  218.  
  219.  
  220.  
  221.                                                                 [Page 4]
  222.  
  223.