• Using GNU's against slrn's spool

    From bozo user@anthk@disroot.org to gnu.emacs.help on Wed May 17 18:12:40 2023
    From Newsgroup: gnu.emacs.help

    #gnus.el file:

    (setq gnus-select-method '(nnspool "")
    nnspool-spool-directory "/var/spool/slrnpull/news"
    nnspool-nov-directory "/var/spool/slrnpull/news/over.view"
    nnspool-active-file "/var/spool/slrnpull/data/active"
    gnus-check-new-newsgroups t
    gnus-post-method '(nnspool "")
    nnspool-inews-program "/bin/true")


    Hello there. First, sadly I'm posting this from slrn.
    slrnpull works great with nnspool. No issues
    on fetching the groups, reading the messages
    and so on.
    The problem is to answer/followup the articles.
    I can't, because Emacs using nnspool asks me
    for the inews program, which doesn't exist
    in my machine. How could I solve this without
    resorting to install a dependency which might
    be cumbersome or big to manage?
    Thanks in advence.

    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Javier@invalid@invalid.invalid to gnu.emacs.help on Sun May 21 22:14:04 2023
    From Newsgroup: gnu.emacs.help

    bozo user <anthk@disroot.org> wrote:
    The problem is to answer/followup the articles.
    I can't, because Emacs using nnspool asks me
    for the inews program, which doesn't exist
    in my machine. How could I solve this without
    resorting to install a dependency which might
    be cumbersome or big to manage?

    I would suggest using leafnode instead of slrnpull.
    It occupies ~1 Mb and runs a NNTP server on localhost.
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Anssi Saari@anssi.saari@usenet.mail.kapsi.fi to gnu.emacs.help on Tue May 23 15:26:35 2023
    From Newsgroup: gnu.emacs.help

    bozo user <anthk@disroot.org> writes:

    The problem is to answer/followup the articles.
    I can't, because Emacs using nnspool asks me
    for the inews program, which doesn't exist
    in my machine. How could I solve this without
    resorting to install a dependency which might
    be cumbersome or big to manage?

    inews isn't big or cumbersome as far as I know. In Debian Linux and
    derivatives there's the package inn2-inews which includes inews. Its
    installed size is all of 365 kB in Debian 11.

    It should be possible to configure Gnus to put your outgoing messages in
    the news spool for slrnpull to send out too. But that probably needs
    some knowledge of what slrnpull expects and how to make Gnus provide
    that. Should be easier to just use inews.
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Javier@invalid@invalid.invalid to gnu.emacs.help on Tue May 23 19:57:42 2023
    From Newsgroup: gnu.emacs.help

    Javier <invalid@invalid.invalid> wrote:
    bozo user <anthk@disroot.org> wrote:
    The problem is to answer/followup the articles.
    I can't, because Emacs using nnspool asks me
    for the inews program, which doesn't exist
    in my machine. How could I solve this without
    resorting to install a dependency which might
    be cumbersome or big to manage?

    I would suggest using leafnode instead of slrnpull.
    It occupies ~1 Mb and runs a NNTP server on localhost.

    I have checked the docs and it looks like it's possible to use a
    different method for getting news and another method for posting.

    (setq gnus-nntp-server nil)
    (setq gnus-select-method (list 'nnspool (system-name)))
    (setq gnus-post-method '(nntp "flab.flab.edu"))

    See:

    C-h v gnus-select-method
    C-h v gnus-post-method


    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From bozo user@anthk@disroot.org to gnu.emacs.help on Thu May 25 16:22:40 2023
    From Newsgroup: gnu.emacs.help

    On 2023-05-23, Javier <invalid@invalid.invalid> wrote:
    Javier <invalid@invalid.invalid> wrote:
    bozo user <anthk@disroot.org> wrote:
    The problem is to answer/followup the articles.
    I can't, because Emacs using nnspool asks me
    for the inews program, which doesn't exist
    in my machine. How could I solve this without
    resorting to install a dependency which might
    be cumbersome or big to manage?

    I would suggest using leafnode instead of slrnpull.
    It occupies ~1 Mb and runs a NNTP server on localhost.

    I have checked the docs and it looks like it's possible to use a
    different method for getting news and another method for posting.

    (setq gnus-nntp-server nil)
    (setq gnus-select-method (list 'nnspool (system-name)))
    (setq gnus-post-method '(nntp "flab.flab.edu"))

    See:

    C-h v gnus-select-method
    C-h v gnus-post-method



    Well, I solved it with this
    at ~/.gnus.el:

    ##GNUS.el

    (setq gnus-select-method '(nnspool "")
    nnspool-spool-directory "/var/spool/slrnpull/news"
    nnspool-nov-directory "/var/spool/slrnpull/news/over.view"
    nnspool-active-file "/var/spool/slrnpull/data/active"
    gnus-check-new-newsgroups t
    gnus-post-method '(nnspool "")
    nnspool-inews-program "sh"
    nnspool-inews-switches '("-c" "cat > /var/spool/slrnqqqpull/out.going/X$(date +%s)-$$-1.$LOGNAME"))

    (defun my-slrnpull-post-only (&optional dont-check)
    (interactive)
    (when (or dont-check
    (message-news-p))
    (gnus-message 5 "Posting news...")
    (shell-command "slrnpull -d /var/spool/slrnpull --post-only")))

    (add-hook 'message-sent-hook 'my-slrnpull-post-only)

    ##EOF

    Hope this works for the rest
    --- Synchronet 3.21d-Linux NewsLink 1.2