home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / mmdf / mmdf-IIb.43 / uip / msg / msg0.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-05-11  |  1.8 KB  |  72 lines

  1. #include "util.h"
  2. #include "mmdf.h"
  3. #include <pwd.h>
  4. #include <signal.h>
  5. #include <sys/stat.h>
  6. #include <sgtty.h>
  7. #ifdef V4_2BSD
  8. #include <sys/ioctl.h>
  9. #endif V4_2BSD
  10. #include "./msg.h"
  11.  
  12. struct status status;
  13.  
  14. /* Stat buffers, used for comparing times */
  15. struct stat statb1;            /* Reference buffer */
  16. struct stat statb2;            /* Temporary buffer */
  17.  
  18. char    ch_erase;
  19.  
  20. int     nottty;
  21. unsigned int    msgno;            /* message currently being processed */
  22.  
  23. /* user search key for from/subject/text msg sequences */
  24. char    key[80];
  25. char    *gc;
  26.  
  27. char    filename[64];
  28. char    outfile[256];
  29. char    defmbox[60];
  30. char    oldfile[60];
  31. char    *homedir;        /* Full path to home directory */
  32.  
  33. char    maininbox[60];
  34. char    binarybox[60];        /* Binary map file filename */
  35. char    msgrcname[60];        /* User options filename */
  36. char    defoutfile[60];
  37. char    username[20];
  38. char    ismainbox;        /* current file is receiving .mail  */
  39. char    nxtchar;
  40. char    lstsep;            /* separate messages by formfeed   */
  41. char    lstmore;        /* second, or more listed message  */
  42. char    autoconfirm;        /* bypass asking user confirmation */
  43. char    anstype;        /* what addresses to send answers to  */
  44. char    binaryvalid;        /* TRUE if incore binary box is valid */
  45. sigtype    (*orig) ();        /* DEL interrupt value on entry */
  46.  
  47. int     outfd;
  48.  
  49. int exclfd;        /* overwrit() exclusive use fd */
  50. jmp_buf savej;
  51.  
  52. unsigned int ansnum;
  53. unsigned int fwdnum;
  54.  
  55. FILE *fpmsgrc;            /* User options FILEp */
  56.  
  57. char    ttyobuf[BUFSIZ];
  58. char    sndto[M_BSIZE];
  59. char    sndcc[M_BSIZE];
  60. char    sndsubj[M_BSIZE + 9];
  61.  
  62. int    istty;
  63. int    wmsgflag;
  64. int    linecount;
  65. char    *ushell, *ueditor;
  66. char    *nullstr;        /* A null string */
  67.  
  68. char    twowinfil[64];        /* filter for 2-window-answer mode */
  69. char    draft_work[64];        /* Work file for 2-window answer */
  70. char    draft_original[64];    /* Original message(s) for 2-window ans */
  71. char    draftorig[64];        /* Message saving file */
  72.