10 substdio ss0
= SUBSTDIO_FDBUF(read
,0,buf0
,sizeof(buf0
));
12 #define FATAL "ezmlm-weed: fatal: "
18 if (getln(&ss0
,sa
,&match
,'\n') == -1)
19 strerr_die2sys(111,FATAL
,"unable to read input: ");
33 char warn1
[] = " **********************************************";
34 char warn2
[] = " ** THIS IS A WARNING MESSAGE ONLY **";
35 char warn3
[] = " ** YOU DO NOT NEED TO RESEND YOUR MESSAGE **";
36 char warn4
[] = " **********************************************";
50 if (line
.len
== 1) break;
52 if (stralloc_starts(&line
,"Subject: success notice"))
54 if (stralloc_starts(&line
,"Subject: deferral notice"))
57 if (stralloc_starts(&line
,"From: Mail Delivery Subsystem <MAILER-DAEMON@"))
59 if (stralloc_starts(&line
,"Subject: Warning: could not send message"))
61 if (stralloc_starts(&line
,"Subject: Returned mail: warning: cannot send message"))
63 if (stralloc_starts(&line
,"Auto-Submitted: auto-generated (warning"))
76 if (stralloc_starts(&line1
,"This is a MIME-encapsulated message"))
77 if (stralloc_starts(&line3
,"--"))
78 if (stralloc_starts(&line5
,warn1
))
79 if (stralloc_starts(&line6
,warn2
))
80 if (stralloc_starts(&line7
,warn3
))
81 if (stralloc_starts(&line8
,warn4
))
84 if (stralloc_starts(&line1
,warn1
))
85 if (stralloc_starts(&line2
,warn2
))
86 if (stralloc_starts(&line3
,warn3
))
87 if (stralloc_starts(&line4
,warn4
))
90 if (flagmds
&& flagsw
&& flagas
&& flagbw
) _exit(99);
91 if (flagmds
&& flagsr
&& flagbw
) _exit(99);