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%"