• Re: IMAP NNTP gateway

    From Andrew Rump@21:1/5 to kyonshi on Thu Mar 14 12:25:26 2024
    XPost: news.software.nntp

    kyonshi <gmkeros@gmail.com> writes:
    Ok, short question: I was thinking of using my raspberry as a mail
    server, which made me think: is there a way to get nntp newsgroups via
    IMAP? I didn't look too deep into the software yet, but it would be neat
    if I could have that as an option.

    Why do you want that? It would be possible to implement some kind of gateway but it would require a lot of disc space and every time a group explodes you will drown in unread messages!
    Why not just use a news client - and maybe the respberry as a proxy - if that make sense after you explained why you want to do it in the first place.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Markus Schaaf@21:1/5 to All on Thu Mar 14 16:08:35 2024
    XPost: news.software.nntp

    Am 14.03.24 um 13:18 schrieb kyonshi:
    Ok, short question: I was thinking of using my raspberry as a mail
    server, which made me think: is there a way to get nntp newsgroups via
    IMAP? I didn't look too deep into the software yet, but it would be neat
    if I could have that as an option.

    Cyrus IMAP can do this. https://www.cyrusimap.org/imap/reference/admin/nntp.html

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?Julien_=C3=89LIE?=@21:1/5 to All on Thu Mar 14 18:05:18 2024
    XPost: news.software.nntp

    Hi kyonshi,

    Ok, short question: I was thinking of using my raspberry as a mail
    server, which made me think: is there a way to get nntp newsgroups via
    IMAP? I didn't look too deep into the software yet, but it would be neat >>> if I could have that as an option.

    I have installed nextcloud on the rpi as a private file storage/talk
    board. Nextcloud also has an IMAP Mail interface. So I was thinking if I could maybe connect my installation of INN (as yet not configured) to it
    so I could read news by just going on my nextcloud page.

    INN comes with a program named imapfeed which can feed news articles to
    an IMAP server.

    In your newsfeeds file:

    localimapserver\
    :*\
    :Tm:imapfeed!

    imapfeed!\
    :!*\
    :Tc,Wnm*,S16384:/usr/bin/news/imapfeed

    and set the corresponding localimapserver entry in your innfeed.conf
    file. You'll see in the innfeed.conf manual page the deliver-*
    parameters which can be used for that entry.

    I've never tested imapfeed so I hope it still works fine with current
    IMAP implementations. In any case, if you try it, I'll be glad to hear
    your feedback.

    --
    Julien ÉLIE

    « Le bonheur, c'est vouloir ce que l'on a. »

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Grant Taylor@21:1/5 to kyonshi on Thu Mar 14 21:11:08 2024
    XPost: news.software.nntp

    On 3/14/24 07:18, kyonshi wrote:
    I was thinking of using my raspberry as a mail server, which made me
    think: is there a way to get nntp newsgroups via IMAP?

    I don't remember what IMAP server it was, but I know that one I've
    looked at in the past did provide access to the news spool on the server
    using a separate news name space.

    It might have been Cyrus, but the little bit I've read about this
    evening doesn't jive with what I remember. Reading this evening makes
    me think that Cyrus wants to be the NNTP server to receive the articles.
    Conversely I remember reading about an IMAP server that accessed a
    different news daemon's news spool, ostensibly a traditional spool
    (tradspool) for INN.



    --
    Grant. . . .

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Sirius@21:1/5 to kyonshi on Fri Jun 14 16:32:49 2024
    On tor, 2024/03/14 at 13:18:46 GMT, kyonshi wrote:
    Ok, short question: I was thinking of using my raspberry as a mail
    server, which made me think: is there a way to get nntp newsgroups via
    IMAP? I didn't look too deep into the software yet, but it would be neat
    if I could have that as an option.

    A good question. If we look at what an article in Usenet really is, it is
    a message with certain headers. For the most part, the headers align with
    what you would expect from an email message. NNTP has a few of its own,
    and SMTP has others, but the key ones like To, From, Subject and Date are
    the same.

    So if you can download the messages from a newsgroup and store them in a Maildir, you can access the articles just as you would emails. Dovecot at
    the backend uses Maildir to store the messages. So if you script something
    that pull the articles down to the IMAP server and store them in a folder,
    you can access that folder via IMAP.

    A Dovecot plugin that on the fly translates a virtual IMAP folder into
    requests via NNTP - that I have not heard about. It ought to be possible,
    but will likely be slow.

    If you are open to a different solution - run Inn2 on the Pi, or Leafnode,
    and use a client like neomutt that speaks both IMAP and NNTP. That will
    likely be easier.

    --
    Kind regards,

    /S

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Adam H. Kerman@21:1/5 to Sirius on Fri Jun 14 17:36:45 2024
    Sirius <sirius@trudheim.com> wrote:
    On tor, 2024/03/14 at 13:18:46 GMT, kyonshi wrote:

    Ok, short question: I was thinking of using my raspberry as a mail
    server, which made me think: is there a way to get nntp newsgroups via >>IMAP? I didn't look too deep into the software yet, but it would be neat
    if I could have that as an option.

    A good question. If we look at what an article in Usenet really is, it is
    a message with certain headers. For the most part, the headers align with >what you would expect from an email message. NNTP has a few of its own,
    and SMTP has others, but the key ones like To, From, Subject and Date are
    the same.

    So if you can download the messages from a newsgroup and store them in a >Maildir, you can access the articles just as you would emails. Dovecot at
    the backend uses Maildir to store the messages. So if you script something >that pull the articles down to the IMAP server and store them in a folder, >you can access that folder via IMAP.

    When I archive a News article by topic, I use a Mail folder on the same
    host that on which the Mail client and newsreader run. I might save Mail messages on the same topic in the same archive. I'd have to use IMAP if
    we're talking about two different hosts.

    All we're really talking about is downloading all unread articles in a subscribed newsgroup and storing them in a Mail archive. My newsreader
    can do that with a macro by creating a From_ line and prepending it to
    each article.

    A Dovecot plugin that on the fly translates a virtual IMAP folder into >requests via NNTP - that I have not heard about. It ought to be possible,
    but will likely be slow.

    If you are open to a different solution - run Inn2 on the Pi, or Leafnode, >and use a client like neomutt that speaks both IMAP and NNTP. That will >likely be easier.

    Waitaminit. Why wouldn't kyonshi run all articles through a news2mail
    gateway on the host he wants to store the Mail message archive? All this
    stuff exists. To post to Usenet, he'll have to use his Mail client, then
    run the output of the composer through a mail2news gateway to create a
    proto article, then inject it into Usenet.

    I don't see why you'd want this done with Dovecot or another IMAP
    application.

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