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 >
Wrap
Text File
|
1993-06-09
|
3KB
|
129 lines
*** utils/newmail.c.dist Sun Jun 6 13:00:17 1993
--- utils/newmail.c Wed Jun 9 15:27:38 1993
***************
*** 219,224 ****
--- 219,225 ----
int interval_time, /* how long to sleep between checks */
debug = 0, /* include verbose debug output? */
in_window = 0, /* are we running as 'wnewmail'? */
+ quiet_mode = 0, /* do we suppress bell (Ctrl-G)? */
total_folders = 0, /* # of folders we're monitoring */
print_prefix = 0, /* force printing of prefix */
current_folder = 0; /* struct pointer for looping */
***************
*** 349,358 ****
if (ptr == argv[0] && i == 0 && argv[0][0] == 'w')
in_window = 1;
! while ((c = getopt(argc, argv, "di:w")) != EOF) {
switch (c) {
case 'd' : debug++; break;
case 'i' : interval_time = atoi(optarg); break;
case 'w' : in_window = 1; break;
default : usage(argv[0]); exit(1);
}
--- 350,360 ----
if (ptr == argv[0] && i == 0 && argv[0][0] == 'w')
in_window = 1;
! while ((c = getopt(argc, argv, "di:qw")) != EOF) {
switch (c) {
case 'd' : debug++; break;
case 'i' : interval_time = atoi(optarg); break;
+ case 'q' : quiet_mode = 1; break;
case 'w' : in_window = 1; break;
default : usage(argv[0]); exit(1);
}
***************
*** 791,796 ****
--- 793,800 ----
used_to_line = tail_of(hdr->from, from_line, hdr->to);
prefix[0] = '\0';
+ if (! quiet_mode)
+ strcat(prefix, "\007");
if (! in_window)
strcat(prefix, ">> ");
***************
*** 806,812 ****
strcat(prefix, priority_text);
else if (used_to_line)
strcat(prefix, To_text);
! printf("\007%s%s -- %s\n", prefix, from_line, hdr->subject);
} else {
if (hdr->priority)
strcat(prefix, priority_mail);
--- 810,816 ----
strcat(prefix, priority_text);
else if (used_to_line)
strcat(prefix, To_text);
! printf("%s%s -- %s\n", prefix, from_line, hdr->subject);
} else {
if (hdr->priority)
strcat(prefix, priority_mail);
*** lib/strftime.c.dist Sat May 8 14:56:51 1993
--- lib/strftime.c Thu Jun 10 15:28:01 1993
***************
*** 79,87 ****
#ifdef I_SYSTIME
# include <sys/time.h>
#endif
- #ifdef BSD
- # include <sys/timeb.h>
- #endif
#include <ctype.h>
--- 79,84 ----
***************
*** 133,139 ****
#define range(low, item, hi) maximum(low, minimum(item, hi))
! #ifndef BSD
extern char *tzname[2];
extern int daylight;
#endif
--- 130,136 ----
#define range(low, item, hi) maximum(low, minimum(item, hi))
! #ifdef TZNAME
extern char *tzname[2];
extern int daylight;
#endif
***************
*** 396,410 ****
case 'Z': /* time zone name or abbrevation */
i = 0;
if (
! #ifndef TZNAME_MISSING
daylight &&
#endif
timeptr->tm_isdst)
i = 1;
! #ifdef TZNAME_MISSING
! strcpy(tbuf, timeptr->tm_zone);
! #else
strcpy(tbuf, tzname[i]);
#endif
break;
--- 393,407 ----
case 'Z': /* time zone name or abbrevation */
i = 0;
if (
! #ifdef TZNAME
daylight &&
#endif
timeptr->tm_isdst)
i = 1;
! #ifdef TZNAME
strcpy(tbuf, tzname[i]);
+ #else
+ strcpy(tbuf, timeptr->tm_zone);
#endif
break;