home *** CD-ROM | disk | FTP | other *** search
/ ftp.muug.mb.ca / 2014.06.ftp.muug.mb.ca.tar / ftp.muug.mb.ca / pub / src / elm2.4pl22-muug.patch < prev    next >
Text File  |  1993-06-09  |  3KB  |  129 lines

  1. *** utils/newmail.c.dist    Sun Jun  6 13:00:17 1993
  2. --- utils/newmail.c    Wed Jun  9 15:27:38 1993
  3. ***************
  4. *** 219,224 ****
  5. --- 219,225 ----
  6.   int  interval_time,        /* how long to sleep between checks */
  7.        debug = 0,            /* include verbose debug output?    */
  8.        in_window = 0,        /* are we running as 'wnewmail'?    */
  9. +      quiet_mode = 0,        /* do we suppress bell (Ctrl-G)?    */
  10.        total_folders = 0,        /* # of folders we're monitoring    */
  11.        print_prefix = 0,        /* force printing of prefix        */
  12.        current_folder = 0;    /* struct pointer for looping       */
  13. ***************
  14. *** 349,358 ****
  15.       if (ptr == argv[0] && i == 0 && argv[0][0] == 'w')
  16.         in_window = 1;
  17.   
  18. !     while ((c = getopt(argc, argv, "di:w")) != EOF) {
  19.         switch (c) {
  20.           case 'd' : debug++;                    break;
  21.           case 'i' : interval_time = atoi(optarg);        break;
  22.           case 'w' : in_window = 1;                break;
  23.           default  : usage(argv[0]);                exit(1);
  24.        }
  25. --- 350,360 ----
  26.       if (ptr == argv[0] && i == 0 && argv[0][0] == 'w')
  27.         in_window = 1;
  28.   
  29. !     while ((c = getopt(argc, argv, "di:qw")) != EOF) {
  30.         switch (c) {
  31.           case 'd' : debug++;                    break;
  32.           case 'i' : interval_time = atoi(optarg);        break;
  33. +         case 'q' : quiet_mode = 1;                break;
  34.           case 'w' : in_window = 1;                break;
  35.           default  : usage(argv[0]);                exit(1);
  36.        }
  37. ***************
  38. *** 791,796 ****
  39. --- 793,800 ----
  40.       used_to_line = tail_of(hdr->from, from_line, hdr->to);
  41.       prefix[0] = '\0';
  42.   
  43. +     if (! quiet_mode)
  44. +       strcat(prefix, "\007");
  45.       if (! in_window)
  46.         strcat(prefix, ">> ");
  47.   
  48. ***************
  49. *** 806,812 ****
  50.           strcat(prefix, priority_text);
  51.         else if (used_to_line)
  52.           strcat(prefix, To_text);
  53. !       printf("\007%s%s -- %s\n", prefix, from_line, hdr->subject);
  54.       } else {
  55.         if (hdr->priority)
  56.           strcat(prefix, priority_mail);
  57. --- 810,816 ----
  58.           strcat(prefix, priority_text);
  59.         else if (used_to_line)
  60.           strcat(prefix, To_text);
  61. !       printf("%s%s -- %s\n", prefix, from_line, hdr->subject);
  62.       } else {
  63.         if (hdr->priority)
  64.           strcat(prefix, priority_mail);
  65. *** lib/strftime.c.dist    Sat May  8 14:56:51 1993
  66. --- lib/strftime.c    Thu Jun 10 15:28:01 1993
  67. ***************
  68. *** 79,87 ****
  69.   #ifdef I_SYSTIME
  70.   #  include <sys/time.h>
  71.   #endif
  72. - #ifdef BSD
  73. - #  include <sys/timeb.h>
  74. - #endif
  75.   
  76.   #include <ctype.h>
  77.   
  78. --- 79,84 ----
  79. ***************
  80. *** 133,139 ****
  81.   
  82.   #define range(low, item, hi)    maximum(low, minimum(item, hi))
  83.   
  84. ! #ifndef BSD
  85.   extern char *tzname[2];
  86.   extern int daylight;
  87.   #endif
  88. --- 130,136 ----
  89.   
  90.   #define range(low, item, hi)    maximum(low, minimum(item, hi))
  91.   
  92. ! #ifdef TZNAME
  93.   extern char *tzname[2];
  94.   extern int daylight;
  95.   #endif
  96. ***************
  97. *** 396,410 ****
  98.           case 'Z':    /* time zone name or abbrevation */
  99.               i = 0;
  100.               if (
  101. ! #ifndef TZNAME_MISSING
  102.                   daylight &&
  103.   #endif
  104.                   timeptr->tm_isdst)
  105.                   i = 1;
  106. ! #ifdef TZNAME_MISSING
  107. !             strcpy(tbuf, timeptr->tm_zone);
  108. ! #else
  109.               strcpy(tbuf, tzname[i]);
  110.   #endif
  111.               break;
  112.   
  113. --- 393,407 ----
  114.           case 'Z':    /* time zone name or abbrevation */
  115.               i = 0;
  116.               if (
  117. ! #ifdef TZNAME
  118.                   daylight &&
  119.   #endif
  120.                   timeptr->tm_isdst)
  121.                   i = 1;
  122. ! #ifdef TZNAME
  123.               strcpy(tbuf, tzname[i]);
  124. + #else
  125. +             strcpy(tbuf, timeptr->tm_zone);
  126.   #endif
  127.               break;
  128.   
  129.