🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #234469

Re: Attention Gab

#234469
From: Noauth
Date: Sat, 08 Aug 2009 14:49
63 lines
3412 bytes
<slrnh7qqvs.8of.admin@fleegle.mixmin.net> wrote:


> Hi Gab,
> 
> Here's an updated mail2news.py script. My only concern is I can't
> remember if you're using my default build or if the script was
> customised to work on your system.  You might want to do a diff on it
> against yours and see if there's any obvious issues.
> 
> http://www.bananasplit.info/clipboard/mail2news.py

Thanks Zax that's the diff:

> 397c397
> <         msg['From'] = 'Unknown User <nobody@nowhere>'
> ---
> >         msg['From'] = 'Unknown User <nobody@mixmin.net>'
> 400c400,404
> <     fr = blacklist(msg['From'], config.poison_from)
> ---
> >     fr = False
> >     try:
> >         fr = blacklist(msg['From'], config.poison_from)
> >     except AttributeError:
> >         logger.info("Configuration doesn't contain poison_from")
> 414d417
> <   
> 459c462,466
> <     ng = blacklist(msg['Newsgroups'], config.poison_newsgroups)
> ---
> >     ng = False
> >     try:
> >         ng = blacklist(msg['Newsgroups'], config.poison_newsgroups)
> >     except AttributeError:
> >         logger.info("Configuration doesn't contain poison_newsgroups")
> 482c489
> <     
> ---
> > 
> 498c505
> < def blacklist(item, list):
> ---
> > def blacklist(header, list):
> 500,501c507,508
> <     for name in list:
> <         match = item.find(name)
> ---
> >     for item in list:
> >         match = header.find(item)
> 503,505c510,512
> <           logger.debug(long_string(["Blacklist match of %s " % name,
> <                                     "in %s at position %s" % item,
match]))
> <             return name
> ---
> >             logger.debug(long_string(["Blacklist match of %s " % item,
> >                                       "in %s at position %s" % header,
match]))
> >             return item
-- 
The truth that makes men free is for the most part
the truth which men prefer not to hear.
Technical Details
Message-ID: <1367747.AJroLNhTN1@somewhere.invalid.tld>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-tw.bbs.sports.baseball.elephants.20141023.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!news.mixmin.net!news.gabrix.ath.cx!Noauth!not-for-mail
References: <20090807110441.24E1D1A7E43@www.ecn.org> <1809286.yrJzXqYOOT@somewhere.invalid.tld> <slrnh7qpoq.8of.admin@fleegle.mixmin.net> <1631743.clNYUPgWAF@somewhere.invalid.tld> <slrnh7qqvs.8of.admin@fleegle.mixmin.net>

Show Full Headers
Complete Article Headers
Message-ID: <1367747.AJroLNhTN1@somewhere.invalid.tld>
Subject: Re: Attention Gab
Date: Sat, 08 Aug 2009 16:49:33 +0200
From: Noauth <send-mail-to-gpg-key80231A90@noauth.invalid>
References: <20090807110441.24E1D1A7E43@www.ecn.org> <1809286.yrJzXqYOOT@somewhere.invalid.tld> <slrnh7qpoq.8of.admin@fleegle.mixmin.net> <1631743.clNYUPgWAF@somewhere.invalid.tld> <slrnh7qqvs.8of.admin@fleegle.mixmin.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-tw.bbs.sports.baseball.elephants.20141023.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!news.mixmin.net!news.gabrix.ath.cx!Noauth!not-for-mail
Newsgroups: alt.privacy.anon-server
Organization: Noauth
Lines: 63
Reply-To: send-mail-to-gpg-key80231A90@noauth.invalid
NNTP-Posting-Host: 4WLbxRv0KEbIPJtu6Elp3nMKV78.4WLbxRv0KEbIPJtu6Elp3nMKV78.4WLbxRv0KEbIPJtu6Elp3nMKV78
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7Bit
X-Complaints-To: noauthabuse@gmail.com
NNTP-Posting-Date: Sat, 8 Aug 2009 14:49:33 +0000 (UTC)
X-No-Archive: Yes
X-Notice: Filtered by Noauth postfilter v. 6.6.6
X-PGP-KeyServer: http://pgp.gabrix.ath.cx:11371
Cancel-Lock: sha1:iUCwcs90WTBf/SsAbllD15rTHZE=
X-PGP-fingerprint: 54AC C632 B35E FB9B 6D9F 108D DBE6 5425 8023 1A90
X-PGP-KeyID: 0x80231A90
X-User-Agents: PukeBeer_On_the_MB