🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #83366

Re: cleanfeed / 2010-06-02 crashes on FBSD and perl v5.8.9

#83366
From: Steve Crook
Date: Thu, 12 Aug 2010 08:50
28 lines
1837 bytes
On Wed, 11 Aug 2010 16:52:28 +0000 (UTC), Michael Grimm wrote in
Message-Id: <i3ukgc$2e3b$1@de-l.enfer-du-nord.net>:

>| # Extract the right-most FQDN from a Path header
>| sub first_path_host{
>|     my $_ = shift;
>|     s/(![^\.]+)+$//; # Strip RH non-FQDNs
>|     s/.*!//; # Strip all but RH path entry
>|     return $_;
>| };

Hi Michael,

I see you already have an answer to your problem so this is really just
for reference.  The subroutine in question caused a few problems and has
been changed in the development code to:

# Extract the right-most FQDN from a Path header
sub first_path_host{
    local $_ = shift;
    s/(![^\.]+)+$//; # Strip RH non-FQDNs
    s/!\.POSTED.*//; # Strip diagnostic host entry
    s/.*!//; # Strip all but RH path entry
    return $_;
};

Subversion Link:
http://www.mixmin.net/svn/cleanfeed/trunk/cleanfeed
Technical Details
Message-ID: <slrni67ddr.l5e.steve@news.mixmin.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news.mixmin.net!.POSTED.2a01:4f8:100:5243::4!not-for-mail
References: <i3ukgc$2e3b$1@de-l.enfer-du-nord.net>

Show Full Headers
Complete Article Headers
Message-ID: <slrni67ddr.l5e.steve@news.mixmin.net>
Subject: Re: cleanfeed / 2010-06-02 crashes on FBSD and perl v5.8.9
Date: Thu, 12 Aug 2010 08:50:03 +0000
From: Steve Crook <steve@mixmin.net>
References: <i3ukgc$2e3b$1@de-l.enfer-du-nord.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news.mixmin.net!.POSTED.2a01:4f8:100:5243::4!not-for-mail
Newsgroups: news.software.nntp
Organization: Mixmin
Injection-Date: Thu, 12 Aug 2010 08:50:03 +0000 (UTC)
Injection-Info: news.mixmin.net; posting-host="2a01:4f8:100:5243::4";
 logging-data="26830"; mail-complaints-to="abuse@mixmin.net"
User-Agent: slrn/pre1.0.0-18 (Linux)
Lines: 27
X-Original-Bytes: 1627