home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / metamail / contrib / ServiceMail / src / pdinq / pdmain.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-05-09  |  1.9 KB  |  53 lines

  1. /*Copyright (c)  1993 Enterprise Integration Technologies Corporation
  2.  
  3. Permission to use, copy, modify, distribute, and sell this software and
  4. its documentation for any purpose is hereby granted without fee, provided
  5. that (i) the above copyright notices and this permission notice appear in
  6. all copies of the software and related documentation, and (ii) the name of
  7. Enterprise Integration Technologies Corporation may not be used in any
  8. advertising or publicity relating to the software without the specific,
  9. prior written permission of Enterprise Integration Technologies Corporation.
  10.  
  11. THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
  12. EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
  13. WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
  14.  
  15. IN NO EVENT SHALL ENTERPRISE INTEGRATION TECHNOLOGIES CORPORATION  BE
  16. LIABLE FOR ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF
  17. ANY KIND, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  18. PROFITS, WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY
  19. THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  20. PERFORMANCE OF THIS SOFTWARE.
  21. */
  22. struct errinfo
  23. {
  24.   char *msg;
  25.   int level;
  26.   int status;
  27. };
  28.  
  29. struct errinfo err[]={
  30.   {"Cannot chdir to spool directory: ",LOG_EMERG,FATAL | SYSTEM},
  31.   {"Unable to open spooling file: ",LOG_EMERG,FATAL | SYSTEM},
  32.   {"Failure during write of spool file: ",LOG_EMERG,FATAL | SYSTEM},
  33.   {"Unable to chmod spool file: ",LOG_EMERG,FATAL | SYSTEM },
  34.   {"Failure closing spool file: ",LOG_ALERT,SYSTEM},
  35.   {"Unable to allocate memory..",LOG_ALERT,0},
  36.   {"Sendmail generated screwy header lines: ",LOG_ALERT,0},
  37.   {"Spool path too long. ",LOG_EMERG,FATAL}
  38. };
  39.  
  40. static char *fname;
  41. static char spooldir[MAXPATHLEN];
  42. static int header=1;
  43. static int defpri=0;
  44. struct {
  45.   string from;
  46.   time_t date;
  47.   string msgid;
  48. } hdata;
  49.  
  50.  
  51. struct list *firstel=(struct list *)NULL;
  52.  
  53.