unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Dom (shymega) Rodriguez" <shymega@shymega.org.uk>
To: help-gnu-emacs@gnu.org
Subject: Help with GNUS?
Date: Sat, 31 Aug 2024 20:39:38 +0100	[thread overview]
Message-ID: <kuurn5auxmu4lpz7hxndjuvcdomys3ve5ruenprelc7dodn2ba@fcusnxwf37ns> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1510 bytes --]

Hello!

I've recently gotten back into Emacs, and by extension, GNUS.

I repurposed an old config from a few years ago, but GNUS doesn't appear to
'like' it.

I get the following error in `*Messages*`:

> Warning: Opening nnimap server on rnet...failed: ; Unable to open server
> nnimap+rnet due to: Wrong type argument: stringp, ("rnet" "localhost");
> Opening nnimap server on dev...failed: ; Unable to open server nnimap+dev due
> to: Wrong type argument: stringp, ("dev" "localhost"); Opening nnimap server
> on personal...failed: ; Unable to open server nnimap+personal due to: Wrong
> type argument: stringp, ("personal" "localhost"); Opening nntp server on
> leafnode...failed: ; Server nntp+leafnode previously determined to be down;
> not retrying; Opening nntp server on leafnode...failed: ; Server
> nntp+leafnode previously determined to be down; not retrying; Unable to open
> server nntp+leafnode due to: Wrong type argument: stringp, ("localhost"
> "leafnode")

I think there's been a change in how GNUS parses the select method since I last
used it.

I should explain that I have three IMAP accounts (attached is the GNUS elisp
source) that connect to `localhost:143`, and a NNTP select method (Leafnode)
that connect to `localhost:119`.

In theory - this should work. But I haven't used GNUS/Emacs for so long, that I
am a bit rusty.

Could someone point me in the right direction?

Thank you.

Best wishes,
--
Dom Rodriguez
GPG Fingerprint: EB0D 45E6 D0DC 1BA1 A2B5  FC24 72DC F123 1E54 BD43

[-- Attachment #1.2: shy-gnus.el --]
[-- Type: text/plain, Size: 2982 bytes --]

;;; gnus.el --- GNUS configuration for Emacs
;;; commentary:
;;; code:

(setq gnus-save-newsrc-file nil
      gnus-read-newsrc-file t)

(setq gnus-select-method '(nnnil nil))

(setq gnus-secondary-select-methods
  '(
    (nnimap "personal"
            (nnimap-address "localhost")
            (nnimap-user "Dominic.Rodriguez@rodriguez.rog.uk")
            (nnimap-stream plain))
    (nnimap "dev"
            (nnimap-stream plain)
            (nnimap-address "localhost")
            (nnimap-user "shymega@shymega.org.uk"))
    (nntp "laefnode"
          (nntp-port-number 1119)
          (nntp-address "localhost"))
    (nnimap "rnet"
            (nnimap-stream plain)
            (nnimap-user "rnet@rodriguez.org.uk")
            (nnimap-address "localhost"))))

(setq mm-text-html-renderer 'w3m)

(setq gnus-use-cache t)

(defun get-sig-from-mutt (acc)
  "Return account's signature specifed by ACC in $HOME/.mutt/accounts/%s.sig."
  (with-temp-buffer
    (insert-file-contents
     (expand-file-name (format "%s/.config/neomutt/conf.d/accounts.d//%s.sig"
                               (getenv "HOME") acc)))
    (buffer-string)))

(setq gnus-posting-styles
  '(("dominic.rodriguez@rodriguez.org.uk"
     (signature (get-sig-from-mutt "dominic.rodriguez@rodriguez.org.uk"))
     (name "Dom Rodriguez")
     (address "dominic.rodriguez@rodriguez.org.uk"))
    ("rnet@rodriguez.org.uk"
     (signature (get-sig-from-mutt "rnet@rodriguez.org.uk"))
     (name "RNET Administrators")
     (address "rnet@rodriguez.org.uk"))
    ("shymega@shymega.org.uk"
     (signature (get-sig-from-mutt "shymega@shymega.org.uk"))
     (name "Dom Rodriguez")
     (address "shymega@shymega.org.uk"))
    ("nntp-oss"
     (signature (get-sig-from-mutt "shymega@shymega.org.uk"))
     (name "Dom Rodriguez")
     (address "shymega@shymega.org.uk"))))

(setq mm-discouraged-alternatives '("text/html" "text/richtext"))

(setq gnus-read-active-file 'some)

(setq gnus-summary-thread-gathering-function 'gnus-gather-threads-by-subject)

(setq gnus-thread-hide-subtree t)
(setq gnus-thread-ignore-subject t)

(setq gnus-use-correct-string-widths nil)

(setq gnus-thread-sort-functions
  '((not gnus-thread-sort-by-date)
    (not gnus-thread-sort-by-number)))

;;; send emails with msmtp-enqueue
;;; I've set up a script to perform checks on the queue and deal with them as needed, depending on connectivity.

(setq message-send-mail-function 'message-send-mail-with-sendmail
      mail-specify-envelope-from t
      message-sendmail-f-is-evil nil
      mail-envelope-from 'header
      message-sendmail-envelope-from 'header)

(add-hook 'gnus-group-mode-hook 'gnus-topic-mode)

(setq gnus-topic-topology '(("Gnus" visible)
                              (("dominic.rodriguez@rodriguez.org.uk" visible nil nil))
                              (("shymega@shymega.org.uk" visible nil nil))
                              (("rnet@rodriguez.org.uk" visible nil nil))))

(provide 'shy-gnus)
;;; gnus.el ends here

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

             reply	other threads:[~2024-08-31 19:39 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-31 19:39 Dom (shymega) Rodriguez [this message]
2024-08-31 21:45 ` Help with GNUS? James Thomas
2024-09-01 10:32   ` Dom RODRIGUEZ
2024-09-01 21:54     ` James Thomas
2024-09-01 22:58       ` Dom Rodriguez
2024-09-03  2:23         ` James Thomas
2024-09-04  2:00           ` James Thomas
2024-08-31 21:54 ` Stefan Monnier via Users list for the GNU Emacs text editor
2024-09-01 10:32   ` Dom RODRIGUEZ
2024-09-01 22:18 ` Dom Rodriguez

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=kuurn5auxmu4lpz7hxndjuvcdomys3ve5ruenprelc7dodn2ba@fcusnxwf37ns \
    --to=shymega@shymega.org.uk \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).