🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #92447

Re: How to remove an entry from the history file without a storage token?

#92447
From: Russ Allbery
Date: Thu, 04 Sep 2025 23:00
31 lines
2077 bytes
Jesse Rehmer <jesse.rehmer@blueworldhosting.com> writes:

> I feel like this is documented somewhere, but cannot find it. I need to 
> re-inject a single article that was rejected due to a regex mistake in a 
> filter.

> Is there a simple way to remove such entry from the history file without 
> using expire or makehistory?

> [news@spool1 ~]$ grephistory 
> '<109d058$r9q$2@nnrp.usenet.blueworldhosting.com>'
> /dev/null

> [news@spool1 ~]$ grephistory -v 
> '<109d058$r9q$2@nnrp.usenet.blueworldhosting.com>'
> /dev/null (hash is A9615AD7F8B9643FC78D0645783E6CA9)

> [news@spool1 ~]$ prunehistory
> <109d058$r9q$2@nnrp.usenet.blueworldhosting.com>
> prunehistory: no entry for 
> <109d058$r9q$2@nnrp.usenet.blueworldhosting.com>

prunehistory doesn't remove the line, just the tokens associated with it.
I think dbz is append-only, so you can't remove an entry entirely without
a history database rebuild (which is what expire does).

-- 
Russ Allbery (eagle@eyrie.org)             <https://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <https://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <8734916cy4.fsf@hope.eyrie.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.pugleaf.net!ygg-srl.newsdeef.eu!srl.newsdeef.eu!weretis.net!feeder8.news.weretis.net!news.szaf.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!news.eyrie.org!.POSTED!not-for-mail
References: <109d20u$r9q$3@nnrp.usenet.blueworldhosting.com>

Show Full Headers
Complete Article Headers
Message-ID: <8734916cy4.fsf@hope.eyrie.org>
Subject: Re: How to remove an entry from the history file without a storage token?
Date: Thu, 04 Sep 2025 16:00:03 -0700
From: Russ Allbery <eagle@eyrie.org>
References: <109d20u$r9q$3@nnrp.usenet.blueworldhosting.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.pugleaf.net!ygg-srl.newsdeef.eu!srl.newsdeef.eu!weretis.net!feeder8.news.weretis.net!news.szaf.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!news.eyrie.org!.POSTED!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: hope.eyrie.org;
 logging-data="22335"; mail-complaints-to="news@eyrie.org"
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:rkiJPyCucZcYpQ9+fWmPm2A9yfo=