all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Help with GNUS?
@ 2024-08-31 19:39 Dom (shymega) Rodriguez
  2024-08-31 21:45 ` James Thomas
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Dom (shymega) Rodriguez @ 2024-08-31 19:39 UTC (permalink / raw)
  To: help-gnu-emacs


[-- 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 --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-09-04  2:00 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-31 19:39 Help with GNUS? Dom (shymega) Rodriguez
2024-08-31 21:45 ` 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.