Thread View: news.software.nntp
4 messages
4 total messages
Started by Jesse Rehmer
Thu, 04 Sep 2025 21:57
How to remove an entry from the history file without a storage token?
Author: Jesse Rehmer
Date: Thu, 04 Sep 2025 21:57
Date: Thu, 04 Sep 2025 21:57
19 lines
1745 bytes
1745 bytes
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>
Re: How to remove an entry from the history file without a storage token?
Author: Russ Allbery
Date: Thu, 04 Sep 2025 23:00
Date: Thu, 04 Sep 2025 23:00
31 lines
2077 bytes
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.
Re: How to remove an entry from the history file without a storage token?
Author: Julien ÉLIE
Date: Mon, 08 Sep 2025 08:54
Date: Mon, 08 Sep 2025 08:54
37 lines
2779 bytes
2779 bytes
Hi Jesse, > 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? As Russ said, you need running expire. Don't forget to change the /remember/ setting before. It is somehow documented in the FAQ, 6.4 "Feed all articles on a server to another server" and 6.5 "Rename a newsgroup". """ Note that rejected articles are remembered during the number of days specified by the /remember/ line in expire.ctl; so, in case you forgot to change the above parameters, you'll have to wait that number of days before being able to inject them again. Another possibility is to set /remember/ to 0, run the expire process (for instance via news.daily called with the same parameters as in crontab, plus "notdaily"), undo the change in expire.ctl and then start the feed again. """ """ The message IDs of the articles will already be in history, and you'll have to change the message IDs of all of the messages or remove them from the history database (such as by moving the articles away, changing /remember/ to 0 so that old history entries won't be retained, and then running expire to purge them out of history). """ -- Julien ÉLIE « C'est la goutte d'eau qui fait déborder le vase et qui met le feu aux poudres. »
Re: How to remove an entry from the history file without a storage token?
Author: Billy G.
Date: Mon, 08 Sep 2025 10:46
Date: Mon, 08 Sep 2025 10:46
14 lines
1430 bytes
1430 bytes
On 08.09.25 09:54, Julien ÉLIE wrote: > Note that rejected articles are remembered during the number of days > specified by the /remember/ set remembertrash: false ? -- ...... Billy G. (go-while) https://pugleaf.net @Newsgroup: rocksolid.nodes.help irc.pugleaf.net:6697 (SSL) #lounge discord: https://discord.gg/rECSbHHFzp
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads