Debian Codegraph @

misc/contrib/news_via_mail/news2mail.awk

raw
1 BEGIN { first = 1; }
2 END {
3 close("/usr/sbin/sendmail -t ache");
4 }
5 /^#! rnews [0-9]+$/ {
6 if (!first)
7 close("/usr/sbin/sendmail -t ache");
8 first = 0;
9 next;
10 }
11 { print | "/usr/sbin/sendmail -t ache"; }