home *** CD-ROM | disk | FTP | other *** search
/ PDA Software Library / pdasoftwarelib.iso / PSION / COMMS / PSIONMAI / PMFULLSO / SUNMAIL / PROJECT.H < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-05  |  1.7 KB  |  85 lines

  1. /* start of structure definitions */
  2.  
  3. /* initial data */
  4. struct mydata {
  5.     char myaddr[50] ;
  6.     char mypath[1024] ;
  7.     } ;
  8.     
  9. /* linked list data definitions */
  10. struct ll {
  11.    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 */
  12.    char to[100] ;
  13.    char from[100] ;
  14.    char subject[100] ;
  15.    char cc[100] ;
  16.    char bcc[100] ;
  17.    int status ;
  18.    int read ;
  19.    int no ;
  20.    int count ;
  21.    struct mydata * mydata ;
  22.    struct ll * next ;
  23.    } ;
  24.  
  25. /* end of struct definitions */
  26.  
  27.  
  28. /* start of defines */
  29.  
  30. #define TRUE 1
  31. #define FALSE 0
  32.  
  33. /* list printing definitions */
  34. #define PDATAFILE 0x1
  35. #define PTO 0x2
  36. #define PFROM 0x4
  37. #define PSUBJECT 0x8
  38. #define PCC 0x10
  39. #define PBCC 0x20
  40. #define PSTATUS 0x40
  41. #define PREAD 0x80
  42. #define PNO 0x100
  43. #define PCOUNT 0x200
  44. #define PACTIVE 0x400
  45. #define PIGNORE 0x800
  46. #define PDELETED 0x1000
  47. /* general defines */
  48. #define FILEERR -1
  49. #define MEMERR -2
  50. #define IERR -3
  51.  
  52. /* max line length */
  53. #define MAXLINE 1024
  54. /* ll status values */
  55. #define ACTIVE 0
  56. #define IGNORE -1
  57. #define DELETED -2
  58. /* ll new / read */
  59. #define RD -1
  60. #define NEW -2
  61.  
  62. #define OUTSKELETON "out%03d.msg"
  63. #define INSKELETON "in%03d.msg"
  64.  
  65. /* locations of the meta files */
  66. #define METAIN "in.mta"
  67. #define METAOUT "out.mta"
  68.  
  69. /* debugging defines */
  70. #define cmddbg FALSE 
  71. #define lldbg FALSE 
  72. #define mtadbg FALSE 
  73. #define topdbg FALSE 
  74. #define procdbg FALSE 
  75. #define inpdbg FALSE 
  76. #define filedbg TRUE 
  77. #define ancdbg FALSE
  78.  
  79. /* end of defines */
  80. /* commands to manipulate the linked list */
  81. struct ll * llnew() ;
  82. struct ll * llnofind() ;
  83.  
  84. /* End of function definitions */
  85.