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

    From Jesse Rehmer@jesse.rehmer@blueworldhosting.com to news.software.nntp on Thu Sep 4 21:57:50 2025
    From Newsgroup: news.software.nntp

    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>
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Russ Allbery@eagle@eyrie.org to news.software.nntp on Thu Sep 4 16:00:03 2025
    From Newsgroup: news.software.nntp

    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.
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From =?UTF-8?Q?Julien_=C3=89LIE?=@iulius@nom-de-mon-site.com.invalid to news.software.nntp on Mon Sep 8 10:54:08 2025
    From Newsgroup: news.software.nntp

    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 |eLIE

    -2-aC'est la goutte d'eau qui fait d|-border le vase et qui met le feu aux
    poudres.-a-+

    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Billy G.@contact-5c2e-000@pugleaf.net to news.software.nntp on Mon Sep 8 11:46:46 2025
    From Newsgroup: news.software.nntp

    On 08.09.25 09:54, Julien |eLIE 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
    --- Synchronet 3.21a-Linux NewsLink 1.2