• retrieve usenet article by message ID in terminal

    From Marco Moock@21:1/5 to All on Sun Feb 4 15:23:29 2024
    Hello!

    Some weeks ago somebody posted a way to retrieve a complete message in
    the terminal by the msg id.

    Does somebody know where that has been posted?

    --
    kind regards
    Marco

    Spam und Werbung bitte an ichwillgesperrtwerden@nirvana.admins.ws

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From yeti@21:1/5 to Marco Moock on Sun Feb 4 18:47:11 2024
    Marco Moock <mm+usenet-es@dorfdsl.de> writes:

    Hello!

    Some weeks ago somebody posted a way to retrieve a complete message in
    the terminal by the msg id.

    Does somebody know where that has been posted?

    No. I don't know.

    ...but this is one way that kind of does the trick:

    ------------------------------------------------------------------------
    $ printf '%s\r\n' 'article <upo6l1$3k6a0$1@dont-email.me>' quit . | nc news.uni-stuttgart.de nntp
    ------------------------------------------------------------------------

    --
    I do not bite, I just want to play.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Marco Moock@21:1/5 to All on Tue Feb 6 10:02:53 2024
    On 04.02.2024 um 18:47 Uhr yeti wrote:

    $ printf '%s\r\n' 'article <upo6l1$3k6a0$1@dont-email.me>' quit . |
    nc news.uni-stuttgart.de nntp

    That has the disadvantage that it includes the NNTP responses which
    causes problem when parsed to other applications that expect only the
    message.

    --
    kind regards
    Marco

    Send spam to muell456@cartoonies.org

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Marco Moock@21:1/5 to All on Tue Feb 6 10:34:15 2024
    On 04.02.2024 um 15:23 Uhr Marco Moock wrote:

    Some weeks ago somebody posted a way to retrieve a complete message in
    the terminal by the msg id.

    Does somebody know where that has been posted?

    lynx -source "nntp://news.i2pn2.org/<msgid>"
    is nearly that what I need.
    It places an <XMP>/</XMP> line at the beginning and at the end, but
    sed can remove that.


    --
    kind regards
    Marco

    Send spam to muell456@cartoonies.org

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Adam W.@21:1/5 to Marco Moock on Fri Feb 23 15:47:34 2024
    Marco Moock <mm+usenet-es@dorfdsl.de> wrote:

    lynx -source "nntp://news.i2pn2.org/<msgid>"

    Use '', otherwise $ in msgids will be treated as variables. At least in
    bash.

    Like in your msgid:

    upsuen$qne4$1@dont-email.me

    It's decoded to upsuen@dont-email.me, because there's no variable $qne4
    and $1.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From morena@21:1/5 to Marco Moock on Tue Oct 22 23:38:48 2024
    On 2/4/24 3:23 PM, Marco Moock wrote:

    Some weeks ago somebody posted a way to retrieve a complete message in
    the terminal by the msg id.

    Similar to yeti's line, in one line shell script, but like a pro
    interactively asking for message id, shows message in less viewer.

    ------------------------------------------------------------------------

    #!/bin/sh
    function nsearch { read ID?"Message ID: "; printf "%s\r\n" "article
    \$ID" quit . | nc news.blueworldhosting.com nntp | less; }; nsearch

    ------------------------------------------------------------------------

    --
    morena
    gopher://morena.rip/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From morena@21:1/5 to All on Tue Oct 22 23:57:28 2024
    A bit broken as somehow I expected newsreader client will respect my
    newline ;/

    You can see it at gopher://morena.rip/0ns or ideally get it as binary
    with gopher://morena.rip/9ns as text can be always mangled over network
    with newlines and things.

    --
    morena
    gopher://morena.rip/

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