From: Ian Jackson Date: Wed, 2 Jun 2010 01:22:57 +0000 (+0100) Subject: filter out some system headers in inews X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~webstump/git?p=modbot-mtm.git;a=commitdiff_plain;h=35d9640dc16b433d75b3ae917791d95ab8343410 filter out some system headers in inews --- diff --git a/inews.INO b/inews.INO index 99c750a..6acee1a 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-$&/; + ' $tf | inews -h -Q -R else (set -e echo "Newsgroups: %DIVERTPOSTINGS%"