X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~webstump/git?a=blobdiff_plain;f=inews.INO;h=915dd6eab3043758f5fa883913a3924ee7cbda71;hb=7125403d58d2a281a699a8c53ab09bd7304aa048;hp=99c750a1ee926bbbfa4651a6b3fb20492798d713;hpb=9a0da88d6c38e9ff5d27e2dcd8bb8cabea7b4fa9;p=modbot-mtm.git diff --git a/inews.INO b/inews.INO index 99c750a..915dd6e 100755 --- a/inews.INO +++ b/inews.INO @@ -15,7 +15,10 @@ output=` set -e exec 2>&1 if [ x%DIVERTPOSTINGS% = x ]; then - inews -h -Q -R <$tf + perl -pe ' + next unless ($.==1)../^$/; + s/^(?:X-Trace|NNTP-Posting-(?:Date|Host)|X-Complaints-To|Injection-Info)/X-$&/; + ' $tf | inews -h -Q -R else (set -e echo "Newsgroups: %DIVERTPOSTINGS%" @@ -37,4 +40,4 @@ fi echo echo ====================== cat $tf -) | mail -s 'lost moderated newsgroup submission' webstump +) | mail -s "lost moderated newsgroup submission %ABBREV%" webstump