home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / metamail / contrib / ServiceMail / src / mesh / mesh.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-03-15  |  2.4 KB  |  80 lines

  1. /*
  2.  * mesh.h -- include file for MADE Email Shell
  3.  *
  4.  * 2-18-93   weber@eitech.com added splitsize field to message struct
  5.  * 1-21-93   weber@eitech.com added to field to message struct
  6.  * 27-Jun-92 weber@eitech.com marked ServiceMail(tm) v1.0
  7.  * 25-May-92 weber@eitech.com created
  8.  *
  9.  * Copyright (c)  1992 Enterprise Integration Technologies Corporation
  10.  *
  11.  * Permission to use, copy, modify, distribute, and sell this software and 
  12.  * its documentation for any purpose is hereby granted without fee, provided
  13.  * that (i) the above copyright notices and this permission notice appear in
  14.  * all copies of the software and related documentation, and (ii) the name of
  15.  * Enterprise Integration Technologies Corporation may not be used in any 
  16.  * advertising or publicity relating to the software without the specific, 
  17.  * prior written permission of Enterprise Integration Technologies Corporation.
  18.  * 
  19.  * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
  20.  * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
  21.  * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
  22.  *
  23.  * IN NO EVENT SHALL ENTERPRISE INTEGRATION TECHNOLOGIES CORPORATION  BE
  24.  * LIABLE FOR ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF
  25.  * ANY KIND, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  26.  * PROFITS, WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY
  27.  * THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  28.  * PERFORMANCE OF THIS SOFTWARE.
  29.  */
  30.  
  31. #define PROGRAM_NAME    "mesh"
  32. #define PROGRAM_BLURB   "Invoke site-specific services on email messages"
  33. #define PROGRAM_AUTHOR  "Jay C. Weber"
  34. #define PROGRAM_OWNER   "Enterprise Integration Technologies"
  35. #define PROGRAM_LICENSE "All rights reserved"
  36. #define PROGRAM_VERSION "1.1"
  37.  
  38. #include <stdio.h>
  39. #include <ctype.h>
  40. #include <strings.h>
  41. #ifdef FACILITY 
  42. #include <syslog.h>
  43. #endif
  44.  
  45. #define MAXLINELEN 1000
  46. #define MAXFILENAMELEN 128
  47. #define MAXPARTS 32
  48. #define MAXCTPARAMETERS 16
  49. #define MAXBOUNDARYLEN 70
  50.  
  51. struct MessageInfo {
  52.     char *from;
  53.     char *to;
  54.     char *reply_to;
  55.     char *id;
  56.     char *date;
  57.     char *subject;
  58.     char *service;
  59.     char *splitsize;
  60.     struct {
  61.         char *type;
  62.         char *format;
  63.         char *encoding;
  64.         char *id;
  65.         int numparms;
  66.         struct {
  67.             char *name;
  68.             char *value;
  69.         } parms[MAXCTPARAMETERS];
  70.     } content;
  71.     union {
  72.         char fname[MAXFILENAMELEN];
  73.         struct {
  74.             unsigned numparts;
  75.             struct MessageInfo **parts;
  76.         } multipart;        
  77.     } body;
  78. };  
  79. extern int logging,loglevel;
  80.