home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / pine / imap-3.0 / README < prev    next >
Encoding:
Text File  |  1992-12-09  |  7.6 KB  |  174 lines

  1.              IMAP Development Environment
  2.                 9 December 1992
  3.                  Mark Crispin
  4.  
  5. COPYRIGHT NOTICE:
  6.  
  7. Some portions Copyright 1988 by The Leland Stanford Junior University.
  8. Copyright 1989, 1990, 1991, 1992 by the University of Washington.
  9.  
  10.  Permission to use, copy, modify, and distribute this software and its
  11. documentation for any purpose and without fee is hereby granted, provided
  12. that the above copyright notices appear in all copies and that both the
  13. above copyright notices and this permission notice appear in supporting
  14. documentation, and that the name of the University of Washington or The
  15. Leland Stanford Junior University not be used in advertising or publicity
  16. pertaining to distribution of the software without specific, written prior
  17. permission.  This software is made available "as is", and
  18. THE UNIVERSITY OF WASHINGTON AND THE LELAND STANFORD JUNIOR UNIVERSITY
  19. DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED, WITH REGARD TO THIS SOFTWARE,
  20. INCLUDING WITHOUT LIMITATION ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
  21. FITNESS FOR A PARTICULAR PURPOSE, AND IN NO EVENT SHALL THE UNIVERSITY OF
  22. WASHINGTON OR THE LELAND STANFORD JUNIOR UNIVERSITY BE LIABLE FOR ANY
  23. SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
  24. RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
  25. CONTRACT, TORT (INCLUDING NEGLIGENCE) OR STRICT LIABILITY, ARISING OUT OF
  26. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  27.  
  28.  
  29. BUG REPORTING ADDRESS:
  30.  
  31.      Although this software is not "supported" per se, bugs or questions
  32. regarding this software may be reported to the author:
  33.  Internet:    MRC@CAC.Washington.EDU
  34.  Postal mail:    Mark Crispin
  35.         University of Washington
  36.         Networks and Distributed Computing, HG-45
  37.         Seattle, WA  98195
  38.         USA
  39.  Phone:        +1 (206) 543-5762
  40.  FAX:        +1 (206) 543-3909
  41.  
  42. CONTENTS:
  43.  
  44.      This directory tree contains the following:
  45.  
  46. Documentation:
  47.  . README        this file
  48.  . RFC1176.TXT        IMAP2 protocol RFC
  49.  . IMAP2bis.TXT        temporary documentation of MIME extensions for IMAP
  50.  . RFC1341.TXT        MIME (message body format) Internet Proposed Standard
  51.  
  52. Global build files:
  53.  . Makefile        master makefile for Unix
  54.  . systype        link to ANSI or non-ANSI depending upon your C compiler
  55.  . ANSI            ANSI C sources
  56.  . non-ANSI        sources converted into pre-ANSI C
  57.  
  58. C-Client programs:
  59.  . c-client        portable C-Client, used by programs below
  60.  . ms            Unix MS client (MM-like interface)
  61.  . ipopd        Unix POP2/POP3 servers with IMAP2 client support
  62.  . MailManager        NeXT MailManager client
  63.  . EasyMail        NeXT EasyMail client
  64.  . imapd        IMAP2 server (on Unix, runs under inetd)
  65.  
  66. Other programs:
  67.  . MM-D            Xerox Lisp MM-D client
  68.  . mapser        server for TOPS-20
  69.  
  70. NOTES ON THE VARIOUS COMPONENTS:
  71.  
  72.      MS runs under BSD Unix and requires Columbia's CCMD command package in
  73. a ccmd directory at the same level as the root of this directory tree.
  74.  
  75.      MTest has been run under BSD Unix, MS-DOS, Macintosh, and TOPS-20.  It
  76. is a very primitive interface, however, and is suited mainly as a
  77. model of how to write a main program for the C-Client.  You should take
  78. a look at the source to figure out how to use it; briefly, it first asks
  79. for a mailbox name (either a local file path or an IMAP mailbox in the
  80. form {hostname}mailbox) and then puts you in a command mode where "?" will
  81. give you a list of commands.
  82.  
  83.      MailManager and EasyMail run on a NeXT and requires the NeXT
  84. Application Kit to build and execute.  MS and MTest will also run on the
  85. NeXT, albeit inside a terminal emulator window.
  86.  
  87.      The Unix clients ms and/or mtest may be installed on a system
  88. directory.  There is also a man page for ms.  The Pine mailer has IMAP
  89. support, and is available separately on the FTP.CAC.Washington.EDU
  90. archives.
  91.  
  92.      The Unix servers ipop2d, ipop3d, and imapd should be installed in
  93. a system daemon directory, and invoked by your /etc/inetd.conf file
  94. with lines such as:
  95.     pop    stream    tcp    nowait    root    /usr/local/etc/ipop2d    ipop2d
  96.     pop3    stream    tcp    nowait    root    /usr/local/etc/ipop3d    ipop3d
  97.     imap    stream    tcp    nowait    root    /usr/local/etc/imapd    imapd
  98. You may also have to edit your /etc/services (or Yellow Pages,
  99. Netinfo, etc. equivalent) to register these services, e.g.
  100.     pop        109/tcp        postoffice
  101.     pop3        110/tcp
  102.     imap        143/tcp
  103.  
  104.      If you want to enable the rimap capability, which allows users with a
  105. suitable client and .rhosts file on the server to access IMAP services
  106. without transmitting her password in the clear over the network, you need
  107. to have /etc/rimapd as a link to the real copy of imapd.  Assuming you have
  108. imapd installed on /usr/local/etc as above:
  109.     % ln -s /usr/local/etc/imapd /etc/rimapd
  110.  
  111.      Technical note: rimap works by having the client routine tcp_aopen()
  112. invoke `rsh _host_ exec /etc/rimapd' in an child process, and then
  113. returning pipes to that process' standard I/O instead of a TCP socket.  You
  114. can set up `e-mail only accounts' by making the shell be something which
  115. accepts only that string and not ordinary Unix shell commands.
  116.  
  117.      If your Unix system does not have an ANSI C compiler, you must
  118. change the systype link to use the non-ANSI sources before building:
  119.     % cd imap
  120.     % rm systype
  121.     % ln -s non-ANSI systype
  122.  
  123.      Before doing a make, you should connect to the c-client/ directory and
  124. make sure that Makefile is lunk to the appropriate makefile.xxx for your
  125. system.  For example, if you are running on a Sun, do:
  126.     % cd imap/c-client
  127.     % rm Makefile
  128.     % ln -s makefile.sun Makefile
  129.  
  130.      If your system type is not one of the ones supplied, start with
  131. makefile.nxt if you are using an ANSI compiler and makefile.dyn if you are
  132. using a non-ANSI compiler, then modify them as necessary.  If you send the
  133. result back to us, we will make it available for others using your
  134. particular system type.
  135.  
  136.      If you are building an MS-DOS client, you will need a TCP/IP stack
  137. installed on your DOS system along with its development environment.  The
  138. current supported stacks are Novell, Beame & Whiteside, PC/IP, and
  139. Waterloo.  MTest runs under MS-DOS.  A DOS version of Pine is presently in
  140. beta test.
  141.  
  142.      If you are building a Macintosh client, you will need MacTCP installed
  143. on your system as well as the MacTCP C includes and libraries.  MTest runs
  144. on the Macintosh.
  145.  
  146.      If you use a Mac C compiler with 2-byte ints (such as THINK C's normal
  147. mode) you will need to fix some bugs in the MacTCP C includes and libraries
  148. to prevent it from generating bad code, since those MacTCP files violate
  149. Apple's standards of always using explicit shorts or longs, never ints.
  150. You could avoid this if you set 4-byte ints in THINK C; however, the ANSI
  151. library uses 2-byte ints so you lose the functionality of those functions.
  152. C-Client itself is 2-byte int or 4-byte int clean; it can be used in either
  153. mode.
  154.  
  155.      The most important bug in the MacTCP files that you need to fix is in
  156. the file AddressXlation.h, you need to change the definition of the rtnCode
  157. member of the hostInfo structure to be long instead of int.  There are
  158. several other changes you need to make if you decide to compile dnr.c under
  159. THINK C instead of using the Apple-supplied object file; see me for details
  160. if you decide to undertake such an effort.
  161.  
  162.      I have provided C-Client sources for TOPS-20 systems, but you're
  163. on your own in terms of a nice TOPS-20 like main program.  Maybe
  164. someday some nice person will try porting MS to TOPS-20.  It's been a few
  165. years since I last tried building C-Client on TOPS-20, so some hacking may
  166. be needed to get it to work.
  167.  
  168.      If you are building a TOPS-20 server, you should install MAPSER.EXE on
  169. SYSTEM: and have IMAPSV.EXE invoked as a SYSJOB or PTYCON subjob (NOT a
  170. SYSJOB subfork) at system startup.
  171.  
  172.      To run MM-D, you must have the TCP/IP libraries, including the
  173. TCPDOMAIN library, loaded in your environment.
  174.