• Custom header.

    From Miner@21:1/5 to All on Tue Jul 5 08:18:49 2022
    Is it possible to add custom header and current group name as his
    value into retrieved article with suck?

    --
    Miner

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jesse Rehmer@21:1/5 to ta9hoa$1eoar$1@news.trigofacile.com on Fri Jul 8 15:47:54 2022
    On Jul 8, 2022 at 10:16:25 AM CDT, "Julien ÉLIE" in <ta9hoa$1eoar$1@news.trigofacile.com> wrote:

    Hi Miner,

    Is it possible to add custom header and current group name as his
    value into retrieved article with suck?

    Not sure you can do that with suck. (Anyway, you cannot with pullnews.)

    A possible way to achieve what you want is to add that custom header
    with a Perl nnrpd filter hook. (When articles are crossposted to
    several newsgroups, you won't know from which one it has been read by
    suck, though... but I imagine it is the whole point of your question as otherwise the Newsgroups header field already has the information!)

    Suck has a comprehensive filter ability to modify headers and the like. I was looking for a page that used to exist containing excellent examples of how to do this, but can no longer find it - but do know that I recall reading about using it to modify headers, strip things from the Path header, etc.

    --- 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 Jul 8 17:16:25 2022
    Hi Miner,

    Is it possible to add custom header and current group name as his
    value into retrieved article with suck?

    Not sure you can do that with suck. (Anyway, you cannot with pullnews.)

    A possible way to achieve what you want is to add that custom header
    with a Perl nnrpd filter hook. (When articles are crossposted to
    several newsgroups, you won't know from which one it has been read by
    suck, though... but I imagine it is the whole point of your question as otherwise the Newsgroups header field already has the information!)

    --
    Julien ÉLIE

    « Les curés se consolent de n'être pas mariés quand ils entendent les
    femmes se confesser. » (Armand Salacroix)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Miner@21:1/5 to All on Fri Jul 8 16:10:06 2022
    Julien ??LIE wrote:

    Hi Miner,

    Is it possible to add custom header and current group name as his
    value into retrieved article with suck?

    Not sure you can do that with suck. (Anyway, you cannot with
    pullnews.)

    A possible way to achieve what you want is to add that custom
    header with a Perl nnrpd filter hook. (When articles are
    crossposted to several newsgroups, you won't know from which
    one it has been read by suck, though... but I imagine it is the
    whole point of your question as otherwise the Newsgroups header
    field already has the information!)

    "Newsgroups:" may contain multiple names while I need current
    group name only.

    --
    Miner

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