home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / metamail / contrib / ServiceMail / src / pdinq / pdinq.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-05-09  |  2.0 KB  |  67 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. #include <stdio.h>
  23. #include <fcntl.h>
  24. #include <string.h>
  25. #include <time.h>
  26. #include <limits.h>
  27. #include <sys/param.h>
  28. #include "pderrors.h"
  29. #define STRINGLENGTH  1024
  30. #define CONFIG "config.pdq"
  31. #define SPOOLPREF "pdq"
  32. #define DEFALLOC STRINGLENGTH
  33. #define BUFFERSIZE DEFALLOC
  34. #define SETB(a) if(at){char *temp;\
  35.                         if(gotill(cur,"<")){\
  36.                           at=0;\
  37.                           begin=a;\
  38.                         }\
  39.                         else\
  40.                           goto doit;\
  41.                        }\
  42.                        else\
  43.                         {at=0;begin=a;}
  44. typedef char string[STRINGLENGTH];
  45.  
  46. line2from();
  47. line2msgid();
  48. line2date();
  49. sendmaildata();
  50. char *gotill();
  51. char *makenam();
  52. struct varpair
  53. {
  54.   char *key;
  55.   string val;
  56.   int critical;
  57. };
  58.  
  59. struct list {
  60.   char *line;
  61.   struct list *next;
  62. };
  63.  
  64. char *rwl();
  65. char rwc();
  66. time_t getdate();
  67.