Re: Problem with multiple sites and crossposting
Janne Jalkanen <[email protected]>
| Newsgroups | gmane.network.sn |
|---|---|
| Message-ID | <[email protected]> |
> Diffs are given to the 0.3.3 version of POST.
Whoops, screwed up. The anonymizer wouldn't like postings without
signatures. Here's a fixed patch:
[news@iso bin]$ diff -c POST POST-anon
*** POST Wed Dec 6 09:11:18 2000
--- POST-anon Thu Dec 14 05:41:33 2000
***************
*** 59,64 ****
--- 59,65 ----
postable=
exists=
+ anonymize=
for ng in $NEWSGROUPS; do
mentioned=x$mentioned
***************
*** 68,73 ****
--- 69,80 ----
# .nopost files "belong" to us; we alone control group post access
[ -f $ng/.nopost ] && continue
[ "x$postable" = x ] || postable="$postable,"
+
+ if [ -f $ng/.anonymize ]
+ then
+ anonymize='true'
+ fi
+
postable="$postable$ng"
done
***************
*** 79,85 ****
# VERIFIED_SENDER is inherited from the authenticating script that
# invoked snntpd, if any.
[ "x$VERIFIED_SENDER" = x ] || echo "Sender: $VERIFIED_SENDER"
! cat
} |snsend -v || fail "Unable to post"
echo "Posted to $postable"
: Success
--- 86,107 ----
# VERIFIED_SENDER is inherited from the authenticating script that
# invoked snntpd, if any.
[ "x$VERIFIED_SENDER" = x ] || echo "Sender: $VERIFIED_SENDER"
!
! if [ $anonymize = 'true' ]
! then
! sed -e 's/^From:.*/From: Anonymous coward/' \
! -e 's/^NNTP-Posting-Host:.*/NNTP-Posting-Host: 127.0.0.1/' \
! -e 's/^Organization:.*/Organization: Anonymous Newsposters/' \
! -e 's/^Message-ID: <\([^@]*\)@\([^>]*\)>/Message-ID: <\1@anonymous>/' \
! -e '/^--/,/^\./{ d; }' \
! -e 's/^\.//'
! echo "--"
! echo "Anonymized to protect the innocent."
! echo "."
! else
! cat
! fi
!
} |snsend -v || fail "Unable to post"
echo "Posted to $postable"
: Success
--
Janne Jalkanen Regex Pty Ltd
[email protected] Level 11
Tel: +61-438 428 041 530 Lt Collins St
Fax: +61-3-9909 7510 Melbourne, VIC 3000