home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR31 / MPACK1_2.ZIP / README < prev   
Text File  |  1994-03-05  |  10KB  |  260 lines

  1.               mpack/munpack version 1.2
  2.  
  3. Mpack and munpack are utilities for encoding and decoding
  4. (respectively) binary files in MIME (Multipurpose Internet Mail
  5. Extensions) format mail messages.  For compabibility with older forms
  6. of transferring binary files, the munpack program can also decode
  7. messages in split-uuencoded format.
  8.  
  9. Versions are included for unix, pc, mac and amiga systems.
  10.  
  11. This MIME implementation is intended to be as simple and portable as
  12. possible.  For a slightly more sophisticated MIME implementation, see
  13. the program MetaMail, available via anonymous FTP to
  14. thumper.bellcore.com, in directory pub/nsb
  15.  
  16.  
  17. Compilation:
  18.  
  19. [unix version]
  20.  
  21. If compiling on SCO Unix or an ancient BSD without the strchr()
  22. function, edit the Makefile and uncomment the relevant lines.
  23.  
  24. Compile with the "make" command. Install with 
  25. "make install DESTDIR=/installation/path".  The default value of
  26. DESTDIR is "/usr/local", which installs the programs in /usr/local/bin
  27. and the man pages in /usr/local/man/man1.
  28.  
  29. [pc version]
  30.  
  31. The pc sources have been compiled with Turbo C version 3.0, though
  32. other compilers should also work.  To compile with Turbo C, use the
  33. DOS command "make -f mpack.mak".  
  34.  
  35. [amiga version]
  36.  
  37. The amiga sources have been compiled with SAS/C version 6.3. To compile
  38. with SAS/C, use the command "smake".
  39.  
  40. [mac version]
  41.  
  42. Mpack was compiled with THINK C 6.0 with the 4-byte int option turned
  43. on (and the ANSI-small library compiled with the 4-byte int option)
  44. and prototype enforcement turned off.  Included with this distribution
  45. should be the files "macproj.hqx" which is a BinHex4 version of the
  46. THINK C 6.0 project file, and "macrsrc.hqx" which is a BinHex4 version
  47. of the resources file.
  48.  
  49. If you wish to compile this with a different version of the THINK C
  50. compiler, you must turn on 4-byte ints when compiling the ANSI library
  51. and the source code.  If you wish to use MPW or some other compiler
  52. you will probably have to add additional #include statements for the
  53. appropriate Macintosh interface headers.
  54.  
  55.  
  56. Using the mac version:
  57.  
  58. See the "Help..." menu item in the application.
  59.  
  60.  
  61. Using mpack: [unix, pc and amiga versions]
  62.  
  63. Mpack is used to encode a file in one or more MIME format messages.
  64. The program is invoked with:
  65.  
  66.     mpack [options] -o outputfile file
  67.  
  68. Where "[options]" is one or more optional switches described below.
  69. "file" is the name of the file to encode and "-o outputfile" is
  70. described below.
  71.  
  72. The unix version may also be invoked with either:
  73.  
  74.     mpack [options] file address...
  75.  
  76. or
  77.  
  78.     mpack [options] -n newsgroups file
  79.  
  80. Where "address..." is one or more e-mail address to mail the resulting
  81. messages to and "newsgroups" is a comma-separated list of newsgroups
  82. to post the resulting messages to.
  83.  
  84. The amiga version may be invoked identically to the Unix version.
  85. There is extra flexibility in the options and addresses.  Use "mpack
  86. ?" for a list of options; a second "?" will print more information.
  87. AmigaDOS 2.0 or later is required to run mpack.
  88.  
  89. The possible options are:
  90.  
  91.      -s subject
  92.           Set the Subject header field to Subject.   By default,
  93.           mpack will prompt for the contents of the subject
  94.           header.
  95.  
  96.      -d descriptionfile
  97.           Include the contents of the file descriptionfile in an
  98.           introductory section at the beginning of the first
  99.           generated message.
  100.  
  101.      -m maxsize
  102.           Split the message (if necessary) into partial messages,
  103.           each not exceeding maxsize characters.  The default
  104.           limit is the value of the SPLITSIZE environment 
  105.       variable, or no limit if the environment variable
  106.           does not exist.  Specifying a maxsize of 0 means there
  107.           is no limit to the size of the generated message.
  108.  
  109.      -c content-type
  110.           Label the included file as being of MIME type
  111.           content-type, which must be a subtype of application,
  112.           audio, image, or video.  If this switch is not given,
  113.           mpack examines the file to determine its type.
  114.  
  115.      -o outputfile
  116.           Write the generated message to the file outputfile.  If
  117.           the message has to be split, the partial messages will
  118.           instead be written to the files outputfile.01,
  119.           outputfile.02, etc.
  120.  
  121.  
  122. The environment variables which control mpack's behavior are:
  123.  
  124.      SPLITSIZE
  125.           Default value of the -m switch.  Default "0".
  126.  
  127.      TMPDIR        [unix version only]
  128.       Directory to store temporary files.  Default "/tmp".
  129.  
  130.      HOSTNAME      [pc and amiga versions only]
  131.           Fully qualified domain name to use in generated message-ids.
  132.       Default "random-pc" or "random-maiga".
  133.  
  134.      DOMAINNAME    [amiga version only]
  135.           If $HOSTNAME does not have a '.' in it, this is appended to
  136.           $HOSTNAME to get the domain to use. Default is
  137.           "random-domain".
  138.  
  139.      POSTNEWS       [amiga version only]
  140.       Command to use to post news. Compatible with Dillon UUCP usage.
  141.  
  142.      SENDMAIL       [amiga version only]
  143.       Command to use to send mail. Compatible with Dillon UUCP usage.
  144.        
  145.  
  146. Using munpack:
  147.  
  148. Mpack is used to decode one or more messages in MIME or
  149. split-uuencoded format and extract the embedded files.  The program is
  150. invoked with:
  151.  
  152.     munpack [options] filename...
  153.  
  154. which reads the messages in the files "filename...".  The pc version
  155. does accept wildcards.  Munpack may also be invoked with just:
  156.  
  157.     munpack [options]
  158.  
  159. which reads a message from the standard input.
  160.  
  161. The amiga version does not accept wildcards. Under AmigaDOS prior to
  162. 2.0, only filenames are allowed. Under AmigaDOS 2.0 or later, the Unix
  163. options are supported, with extra flexibility. Use "munpack ?" for a
  164. list of options; a second "?" will print more information.
  165.  
  166. If the message suggests a file name to use for the imbedded part, that
  167. name is cleaned of potential problem characters and used for the
  168. output file.  If the suggested filename includes subdirectories, they
  169. will be created as necessary.  If the message does not suggest a file
  170. name, the names "part01", "part02", etc are used in sequence.
  171.  
  172. If the imbedded part was preceded with textual information, that
  173. information is also written to a file. The file is named the same as
  174. the imbedded part, with any filename extension replaced with ".desc"
  175. on the unix version or with ".dsc" on the pc version.
  176.  
  177. The possible options are:
  178.  
  179.      -f
  180.           Forces the overwriting of existing files.  If a message
  181.           suggests a file name of an existing file, the file will be
  182.           overwritten.  Without this flag, the unix version appends
  183.           ".1", ".2", etc to find a nonexistent file.  Without this
  184.           flag, the pc version replaces any filename extension with
  185.           ".1", ".2", etc to find a nonexistent file.
  186.  
  187.      -C directory
  188.           Change the current directory to "directory" before reading
  189.           any files.  This is useful when invoking munpack
  190.           from a mail or news reader.
  191.  
  192. The environment variables which control munpack's behavior are:
  193.  
  194.      TMPDIR    [unix version]
  195.           Root of directory to store partial messages awaiting 
  196.           reassembly.  Default is "/tmp".   Partial messages are
  197.       stored in subdirectories of $TMPDIR/message-parts-$USER/
  198.  
  199.      TMP    [pc version]
  200.           Root of directory to store partial messages awaiting
  201.           reassembly.  Default is "\tmp".  Partial messages are
  202.           stored in subdirectories of $TMP/parts/
  203.  
  204.      METAMAIL_P_DIR [amiga version only]
  205.           Root of directory to store partial messages awaiting 
  206.           reassembly.  Default is "t:".   Partial messages are
  207.       stored in subdirectories of METAMAIL_P_DIR.
  208.  
  209.      USER, USERNAME [amiga version only]
  210.      Subdirectory of METMAIL_P_DIR where mime parts are stored. USER
  211.      is checked first, then USERNAME. Default "anonymous".
  212.           
  213.  
  214. Acknowledgements:
  215.  
  216. Written by John G. Myers, jgm+@cmu.edu
  217. The mac version was written by Christopher J. Newman, chrisn+@cmu.edu
  218. The amiga port was done by Mike W. Meyer, mwm@contessa.phone.net.
  219.  
  220. Thanks to Nathaniel Borenstein for testing early versions of mpack and
  221. for making many helpful suggestions.
  222.  
  223.  
  224. Reporting bugs:
  225.  
  226. Bugs and comments should be reported to jgm+@cmu.edu.  Please include
  227. the version number and the platform in the report.
  228.  
  229.  
  230. Legalese:
  231.  
  232. (C) Copyright 1993 by John G. Myers and Christopher J. Newman
  233. All Rights Reserved.
  234.  
  235. Permission to use, copy, modify, distribute, and sell this software
  236. and its documentation for any purpose is hereby granted without fee,
  237. provided that the above copyright notice appear in all copies and that
  238. both that copyright notice and this permission notice appear in
  239. supporting documentation, and that the name of John G. Myers or
  240. Christopher J. Newman not be used in advertising or publicity
  241. pertaining to distribution of the software without specific, written
  242. prior permission.  John G.  Myers and Christopher J. Newman make no
  243. representations about the suitability of this software for any
  244. purpose.  It is provided "as is" without express or implied warranty.
  245.  
  246. JOHN G. MYERS AND CHRISTOPHER J. NEWMAN DISCLAIM ALL WARRANTIES WITH
  247. REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF
  248. MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL JOHN G. MYERS OR
  249. CHRISTOPHER J. NEWMAN BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  250. CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
  251. USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  252. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  253. PERFORMANCE OF THIS SOFTWARE.
  254.  
  255.  
  256. Portions of this software are derived from code written by Bell
  257. Communications Research, Inc. (Bellcore) and by RSA Data Security,
  258. Inc. and bear similar copyrights and disclaimers of warranty.
  259.  
  260.