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