home *** CD-ROM | disk | FTP | other *** search
/ PDA Software Library / pdasoftwarelib.iso / PSION / COMMS / PSIONMAI / PMFULLSO / SUNMAIL / SCCS / S.H < prev    next >
Encoding:
Text File  |  1995-07-05  |  1.9 KB  |  107 lines

  1. h12826
  2. s 00002/00002/00082
  3. d D 1.2 95/07/05 20:11:33 tim 2 1
  4. c the input and output skeletons now make the numbering 3 digits
  5. e
  6. s 00084/00000/00000
  7. d D 1.1 95/07/04 20:12:51 tim 1 0
  8. c 
  9. e
  10. u
  11. U
  12. f e 0
  13. t
  14. T
  15. I 1
  16. /* start of structure definitions */
  17.  
  18. /* initial data */
  19. struct mydata {
  20.     char myaddr[50] ;
  21.     char mypath[1024] ;
  22.     } ;
  23.     
  24. /* linked list data definitions */
  25. struct ll {
  26.    char datafile[13] ; /* <name>.<ext>\0 where name is upto 8 chars and ext is 3 chars, total 11 plis the . and the \0 gives 13 */
  27.    char to[100] ;
  28.    char from[100] ;
  29.    char subject[100] ;
  30.    char cc[100] ;
  31.    char bcc[100] ;
  32.    int status ;
  33.    int read ;
  34.    int no ;
  35.    int count ;
  36.    struct mydata * mydata ;
  37.    struct ll * next ;
  38.    } ;
  39.  
  40. /* end of struct definitions */
  41.  
  42.  
  43. /* start of defines */
  44.  
  45. #define TRUE 1
  46. #define FALSE 0
  47.  
  48. /* list printing definitions */
  49. #define PDATAFILE 0x1
  50. #define PTO 0x2
  51. #define PFROM 0x4
  52. #define PSUBJECT 0x8
  53. #define PCC 0x10
  54. #define PBCC 0x20
  55. #define PSTATUS 0x40
  56. #define PREAD 0x80
  57. #define PNO 0x100
  58. #define PCOUNT 0x200
  59. #define PACTIVE 0x400
  60. #define PIGNORE 0x800
  61. #define PDELETED 0x1000
  62. /* general defines */
  63. #define FILEERR -1
  64. #define MEMERR -2
  65. #define IERR -3
  66.  
  67. /* max line length */
  68. #define MAXLINE 1024
  69. /* ll status values */
  70. #define ACTIVE 0
  71. #define IGNORE -1
  72. #define DELETED -2
  73. /* ll new / read */
  74. #define RD -1
  75. #define NEW -2
  76.  
  77. D 2
  78. #define OUTSKELETON "out%d.msg"
  79. #define INSKELETON "in%d.msg"
  80. E 2
  81. I 2
  82. #define OUTSKELETON "out%03d.msg"
  83. #define INSKELETON "in%03d.msg"
  84. E 2
  85.  
  86. /* locations of the meta files */
  87. #define METAIN "in.mta"
  88. #define METAOUT "out.mta"
  89.  
  90. /* debugging defines */
  91. #define cmddbg FALSE 
  92. #define lldbg FALSE 
  93. #define mtadbg FALSE 
  94. #define topdbg FALSE 
  95. #define procdbg FALSE 
  96. #define inpdbg FALSE 
  97. #define filedbg TRUE 
  98. #define ancdbg FALSE
  99.  
  100. /* end of defines */
  101. /* commands to manipulate the linked list */
  102. struct ll * llnew() ;
  103. struct ll * llnofind() ;
  104.  
  105. /* End of function definitions */
  106. E 1
  107.