home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / hamradio / s920603.zip / BM.H < prev    next >
C/C++ Source or Header  |  1991-03-16  |  2KB  |  63 lines

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