• Cancel-Lock and delayed feed

    From Martin Burmester@21:1/5 to All on Sat Jul 26 13:48:17 2025
    Hi,

    when reading[1] I wondered, how does the Cancel-Lock mechanism work when
    the cancel is received before the article to be canceled? Wouldnt the processing of cancels have to be delayed until the article has been
    transferred and seen, defeating the purpose of the delayed feed?

    Cheers,
    Martin

    [1] https://www.eyrie.org/~eagle/software/inn/docs/delayer.html

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Adam H. Kerman@21:1/5 to Martin Burmester on Sat Jul 26 16:00:17 2025
    Martin Burmester <martin@burmester.org> wrote:

    Hi,

    when reading[1] I wondered, how does the Cancel-Lock mechanism work when
    the cancel is received before the article to be canceled? Wouldnt the >processing of cancels have to be delayed until the article has been >transferred and seen, defeating the purpose of the delayed feed?

    [1] https://www.eyrie.org/~eagle/software/inn/docs/delayer.html

    I don't see how there's anything to cancel if the article hasn't yet
    been fed. In that case, isn't there some mechanism to run it against the article before feeding? This is one instance in which cancels would
    actually accomplish something useful as no user would have yet read the article.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Nomen Nescio@21:1/5 to All on Sat Jul 26 15:46:43 2025
    when reading[1] I wondered, how does the Cancel-Lock mechanism work when
    the cancel is received before the article to be canceled?

    It doesn't work if the cancel comes in before the article.

    defeating the purpose of the delayed feed?

    Yes. Don't use it if you want to verify cancel locks.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ray Banana@21:1/5 to All on Sat Jul 26 18:32:49 2025
    Thus spake "Adam H. Kerman" <ahk@chinet.com>

    I don't see how there's anything to cancel if the article hasn't yet
    been fed. In that case, isn't there some mechanism to run it against the article before feeding? This is one instance in which cancels would
    actually accomplish something useful as no user would have yet read the article.

    That's not the problem:

    grephistory '<test-6666@killefitz.org>'
    grephistory: not found
    [news@feeder ~]$ ctlinnd cancel '<test-6666@killefitz.org>'
    Ok
    [news@feeder ~]$ grephistory '<test-6666@killefitz.org>'
    /dev/null

    When the article with this M-ID arrives on the server,
    it will be rejected as a duplicate.

    The problem is that you have a key but no lock to open.
    so to speak. The lock is contained in the article that is
    meant to be cancelled.

    --
    Пу́тін — хуйло́
    https://eternal-september.org

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Martin Burmester@21:1/5 to All on Mon Jul 28 20:51:58 2025
    Hello

    Am 26.07.2025 um 18:32 schrieb Ray Banana:
    Thus spake "Adam H. Kerman" <ahk@chinet.com>

    I don't see how there's anything to cancel if the article hasn't yet
    been fed. In that case, isn't there some mechanism to run it against the
    article before feeding? This is one instance in which cancels would
    actually accomplish something useful as no user would have yet read the
    article.

    That's not the problem:

    grephistory '<test-6666@killefitz.org>'
    grephistory: not found
    [news@feeder ~]$ ctlinnd cancel '<test-6666@killefitz.org>'
    Ok
    [news@feeder ~]$ grephistory '<test-6666@killefitz.org>'
    /dev/null

    When the article with this M-ID arrives on the server,
    it will be rejected as a duplicate.

    The problem is that you have a key but no lock to open.
    so to speak. The lock is contained in the article that is
    meant to be cancelled.

    Exactly. So is this a real problem or should one just not use delayed
    feeds when one cares about Cancel-Locks? I mean, its not impossible that
    the cancel arrives before the article.

    Cheers
    Martin

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?Julien_=C3=89LIE?=@21:1/5 to All on Fri Aug 1 16:26:42 2025
    Hi Martin,

    So should one just not use delayed
    feeds when one cares about Cancel-Locks? I mean, its not impossible that
    the cancel arrives before the article.

    Indeed, that's a good point. I had not Cancel-Lock in mind when
    suggesting the following example in the delayer manual page:

    news.uu.net/uunet\
    :!*,control,control.*,news.lists.filters\
    :Tm:innfeed!

    news.uu.net-delayed/uunet\
    :*,!control,!control.*,@news.lists.filters\
    :Tm:innfeed-delayed!

    I agree that control.cancel should not be delayed by an administrator
    who cares about Cancel-Locks (in which case he has very probably also
    disabled the process of unauthenticated cancels). I will update the documentation to mention an example with control.cancel not delayed.

    Thanks for your message about that problem!

    --
    Julien ÉLIE

    « Sois sage, ô ma douleur, et tiens-toi plus tranquille. » (Charles
    Baudelaire)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)