Article View: news.software.nntp
Article #53993Re: 441 Can't set system "X-Trace" header
From: Wolfgang Schelongowski
Date: Thu, 23 Aug 2001 21:01
Date: Thu, 23 Aug 2001 21:01
39 lines
2124 bytes
2124 bytes
In <ylelq39k9m.fsf@windlord.stanford.edu> Russ Allbery <rra@stanford.edu> writes:
>In news.admin.misc, madog <madog@madogcc.myip.org> writes:
>> "Russ Allbery" <rra@stanford.edu> wrote:
...
>> | sed -e '/^NNTP-Posting-Host/d' -e '/^Xref/d' -e '/^X-Trace/' \
>> | ${TMPFILE} > ${OUTFILE}
>Whoops, forgot a /d. That should be -e '/^X-Trace/d' as the end of that
>command. That may be causing the problem.
It will still delete Lines matching those patterns which are part of
the body. I suggest something like
TMPHDR=/tmp/tmphdr$$
TMPBODY=/tmp/tmpbody$$
rm_em="rm -f $TMPFILE $TMPBODY $TMPHDR "
trap '$rm_em' 0 1 2 15
$rm_em
...
sed -e '/^$/q' $TMPFILE >$TMPHDR
sed -n -e '/^$/,$p' $TMPFILE >$TMPBODY
sed -e '/^NNTP-Posting-Host/d' ... ${TMPHDR} > ${OUTFILE}
cat $TMPBODY >> ${OUTFILE}
...
$rm_em
All untested, YMMV, may contain further bugs and/or redundancy,
bei Nebenwirkungen schlagen Sie Ihren Arzt oder Apotheker, ...
--
"Some people are heroes. And some people jot down notes."
-- Terry Pratchett, The Truth
Technical Details
Message-ID:
<9m3qvb$al0$1@xivic.prima.de>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.admin.misc.mbox.zip!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.cidera.com!Cidera!nrin.ping.de!news.prima.de!xivic.prima.de!not-for-mailReferences:
<9m1glq$b90$1@mail.cn99.com> <ylsnejvbq5.fsf@windlord.stanford.edu> <9m1p8d$glh$1@mail.cn99.com> <ylk7zvbgh0.fsf@windlord.stanford.edu> <9m2bbd$em$1@mail.cn99.com> <ylelq39k9m.fsf@windlord.stanford.edu>Show Full Headers
Complete Article Headers
Message-ID: <9m3qvb$al0$1@xivic.prima.de> Subject: Re: 441 Can't set system "X-Trace" header Date: Thu, 23 Aug 2001 21:01:31 +0000 From: spamtrap@xivic.prima.de (Wolfgang Schelongowski) References: <9m1glq$b90$1@mail.cn99.com> <ylsnejvbq5.fsf@windlord.stanford.edu> <9m1p8d$glh$1@mail.cn99.com> <ylk7zvbgh0.fsf@windlord.stanford.edu> <9m2bbd$em$1@mail.cn99.com> <ylelq39k9m.fsf@windlord.stanford.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.admin.misc.mbox.zip!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.cidera.com!Cidera!nrin.ping.de!news.prima.de!xivic.prima.de!not-for-mail Newsgroups: news.software.nntp,comp.os.linux.misc,news.admin.misc Organization: Private site in Germany Lines: 38 Reply-To: nospam+2588@xivic.prima.de (Wolfgang Schelongowski)