🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #14874

Re: Message-ID

#14874
From: Sven Paulus
Date: Sun, 09 Feb 1997 00:00
31 lines
1852 bytes
Evan Champion <evanc@synapse.net> wrote:
 EC> He could have nnrpd strip incoming message ID's and then add new ones.  
 EC> That wouldn't have the problem of 2 different articles with the same 
 EC> message ID.

But that's dangerous: In the case a user get's articles from server A via
slurp/suck and sends them to server B via rpost, and the Message-Ids are
stripped on B's nnrpd, you would get duplicate articles.

A solution is to insert the following in post.c (ProcessHeaders):

    /* Check, if Message-ID is already on the server,
       in this case drop the article */
    if ((HDR(_messageid) != NULL) &&
        (HISgetent(HDR(_messageid), FALSE) != NULL)) {
        return "Article already present on server";
    }

After doing this check, it's almost safe deleting the Message-Id (problems
can occur, when the Path net->A->User->B is faster than net->B or when B
accepts postings in group which are not feeded to B).

Sven
-- 
--Sven-Paulus----------28-48-32--3-----ub6v@rz.uni-karlsruhe.de------
--Karlstr.-55----------30--2-50-29-----sven@oops.sub.de--------------
--D-76133-Karlsruhe----44-49-10--8-----T#-49-721-9375094-------irc---
--Fido-2:2476/530-------9-12-19-71-----F#-49-721-9375095-----svennie-

Technical Details
Message-ID: <5dlb1q$3c6$4@imperator.oops.sub.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <5da2ab$4tk$1@surz03fi.HRZ.Uni-Marburg.DE> <e5c5jv.3t6@bigred.inka.de> <32FE1A41.325B@synapse.net>

Show Full Headers
Complete Article Headers
Message-ID: <5dlb1q$3c6$4@imperator.oops.sub.de>
Subject: Re: Message-ID
Date: Sun, 09 Feb 1997 00:00:00 +0000
From: Sven Paulus <sven@oops.sub.de>
References: <5da2ab$4tk$1@surz03fi.HRZ.Uni-Marburg.DE> <e5c5jv.3t6@bigred.inka.de> <32FE1A41.325B@synapse.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.mbox.zip!not-for-mail
X-Deja-AN: 217642247
Organization: clueless in Karlsruhe, Germany
Newsgroups: news.software.nntp