home *** CD-ROM | disk | FTP | other *** search
/ HAM Radio 1 / HamRadio.cdr / misc / tcpipsrc / bm.h < prev    next >
C/C++ Source or Header  |  1991-01-27  |  2KB  |  68 lines

  1. #ifndef _BM_H
  2. #define _BM_H
  3. #ifndef _SMTP_H
  4. #include "smtp.h"
  5. #endif
  6. /* bm.h -- definitons for bm.c that aren't included elsewhere */
  7.  
  8. /* Header types */
  9. #define    NOHEADER     -1
  10. #define APPROVED    0
  11. #define    FROM        1
  12. #define    TO        2
  13. #define    DATE        3
  14. #define    MSGID        4
  15. #define    SUBJECT        5
  16. #define    RECEIVED    6
  17. #define    SENDER        7
  18. #define    REPLYTO        8
  19. #define STATUS        9
  20. #define BBSTYPE        10
  21. #define XFORWARD    11
  22. #define CC        12
  23. #define RRECEIPT    13
  24. #define APPARTO        14
  25. #define ERRORSTO    15
  26. #define ORGANIZATION    17
  27. #define    UNKNOWN        18
  28.  
  29. /* number of columns and lines on a standard display, e.g. vt100 */
  30. #define    MAXCOL        80
  31. #define MAXLIN        24
  32.  
  33. /* message status */
  34. #define    BM_DELETE    1
  35. #define    BM_READ        2
  36. #define    BM_FORWARDED    4
  37.  
  38. #define BM_NLET        200    /* default size of letter array */
  39.  
  40. #define SLINELEN    64
  41. #define LINELEN        256
  42.  
  43. /* a mailbox list entry */
  44. struct let {
  45.     long    start;
  46.     long    size;
  47.     int    status;
  48. };
  49.  
  50. extern unsigned Maxlet;        /* max messages */
  51. extern char *fgets();
  52. extern char *Hdrs[];
  53.  
  54. void scanmail __ARGS((struct mbx *m));
  55. int msgtofile __ARGS((struct mbx *m,int msg,FILE *tfile,int noheader));
  56. int dolistnotes __ARGS((int argc,char *argv[],void *p));
  57. int isarea __ARGS((char *name));
  58. int dodelmsg __ARGS((int argc,char *argv[],void *p));
  59. int doreadmsg __ARGS((int argc,char *argv[],void *p));
  60. int doreadnext __ARGS((int argc,char *argv[],void *p));
  61. int mbx_reply __ARGS((int argc,char *argv[],struct mbx *m,struct list **cclist,char **rhdr));
  62. int closenotes __ARGS((struct mbx *m));
  63. long isnewprivmail __ARGS((struct mbx *m));
  64. int htype __ARGS((char *s));
  65. char *getaddress __ARGS((char *string,int cont));
  66.  
  67. #endif  /* _BM_H */
  68.