8#define WHO "printmaillist"
12 logmsg(
WHO,100,FATAL,
"bad mailing list format");
21 if (getln(buffer_1small,&
line,&
match,
'\0') == -1)
22 logmsg(
WHO,111,FATAL,
"unable to read input: ");
26 if (buffer_flush(buffer_1small) == -1)
27 logmsg(
WHO,111,FATAL,
"unable to write output: ");
35 if ((
line.s[0] ==
'.') || (
line.s[0] ==
'/')) {
36 if (buffer_puts(buffer_1small,
line.s) == -1)
37 logmsg(
WHO,111,FATAL,
"unable to write output: ");
38 if (buffer_puts(buffer_1small,
"\n") == -1)
39 logmsg(
WHO,111,FATAL,
"unable to write output: ");
42 if (
line.s[0] ==
'&') {
44 if (buffer_puts(buffer_1small,
line.s) == -1)
45 logmsg(
WHO,111,FATAL,
"unable to write output: ");
46 if (buffer_puts(buffer_1small,
"\n") == -1)
47 logmsg(
WHO,111,FATAL,
"unable to write output: ");