🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
2 messages
2 total messages Started by Sean V. Kelley Tue, 05 Nov 1996 00:00
How to setup GNUS?
#27473
Author: Sean V. Kelley
Date: Tue, 05 Nov 1996 00:00
19 lines
1132 bytes
I'd like to learn how to configure GNUS to my preferences.  Does
anyone have any sample stuff from their .emacs files that they
could share with me?  I've only just recently tried GNUS, as
I prefer using SLRN.  So any examples on how to configure GNUS
and example elisp code would be great!

Many thanks,
              Sean

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sean V. Kelley            ________    __o       skelley@sedona.intel.com
Intel, Corp., CH6-319       _____   _`\<,_      
5000 W. Chandler Blvd.         ___ (_)/ (_)     Not speaking for Intel.
Chandler, AZ  85226 USA


Re: How to setup GNUS?
#27554
Author: Karl Kleinpaste
Date: Fri, 08 Nov 1996 00:00
245 lines
8668 bytes
skelley@sedona.intel.com (Sean V. Kelley) writes:
> I'd like to learn how to configure GNUS to my preferences.  Does
> anyone have any sample stuff from their .emacs files that they
> could share with me?

OK, so let's have some exercises in elisp obfuscation.

General preferencs reflected below:

Gnus for both mail and news; use nnml for mail backend (overview files
are fast).
Hide everything under a private directory beneath ~/Mail, including
.newsrc* files.
Much prefer very wide emacs, with horizontal split for *Article*.
PGP enabled via Mailcrypt.
Hide From: contents in *Summary* for clari* and *sources* groups.
NNTP server lives at a funny port on the server host.
New groups are "killed"; I don't want to hear about them.
No X-Newsreader header; it may have its uses, but I think it's
gratuitous.
Get mail both from local system's mailbox as well as POP host.
Highlight and smilify whenever possible.

Have at it.

--karl
________________

;
; General variable tweaking.
;
(setq mail-host-address "jprc.com"
      mail-yank-prefix "> "
      mc-pgp-comment nil
      user-mail-address "karl@jprc.com")
;
; Starter keybindings.
;
(global-set-key "\e\C-R"   'gnus)
(global-set-key "\C-Xr"    'gnus)
(global-set-key "\C-XR"    'gnus-no-server)
;
; PGP interface.
;
(autoload 'mc-install-write-mode "mailcrypt" nil t)
(autoload 'mc-install-read-mode "mailcrypt" nil t)
(add-hook 'mail-mode-hook 'mc-install-write-mode)
(add-hook 'message-mode-hook 'mc-install-write-mode)
;
; GNUS incantations.
; Don't bother with this when su'd (initial "if").
;
(if (string= (user-real-login-name) "karl")
  (progn
    (require 'gnus)
    (require 'gnus-win)
;; gnus-* variables.
    (setq gnus-activate-foreign-newsgroups 4
	  gnus-article-mouse-face 'highlight
	  gnus-asynchronous t
	  gnus-auto-mail-to-author 'ask
	  gnus-auto-select-first nil
	  gnus-auto-select-next 'quietly
	  gnus-auto-select-same t
	  gnus-button-url 'gnus-netscape-open-url
	  gnus-interactive-post nil
	  gnus-large-newsgroup 50
	  gnus-message-archive-group nil
	  gnus-no-groups-message "No news."
	  gnus-novice-user nil
	  gnus-save-all-headers nil
	  gnus-secondary-select-methods
	  '((nnml ""))
	  gnus-select-group-hook
	  (function
	   (lambda ()
	     (if (or (string-match "talk.abortion" gnus-newsgroup-name))
		 (error "%s?  be serious." gnus-newsgroup-name))
	     ;; Ignore From: in summary for certain groups.
	     (cond ((or	(string-match "clari." gnus-newsgroup-name))
		    (setq gnus-summary-line-format
			  "%U%R%z%I%(%[%4L: %-6,6n%]%)   %s\n"))
		   ((or (string-match "comp.sources" gnus-newsgroup-name)
			(string-match "dow-jones" gnus-newsgroup-name)
			(string-match "comp.internet.net-happening" gnus-newsgroup-name))
		    (setq gnus-summary-line-format
			  "%U%R%z%I%(%[%4L%]%)   %s\n"))
		   (t
		    (setq gnus-summary-line-format
			  "%U%R%z%I%(%[%4L: %-20,20n%]%) %s\n")))
	     ))
	  gnus-select-method '(nntp "aph" (nntp-port-number 8787))
	  gnus-startup-file "~/Mail/.private/.newsrc"
	  gnus-subscribe-newsgroup-method (function gnus-subscribe-killed)
	  gnus-thread-ignore-subject t
	  gnus-thread-sort-functions '(gnus-thread-sort-by-number
				       gnus-thread-sort-by-subject
				       gnus-thread-sort-by-total-score)
	  gnus-use-long-file-name nil
	  gnus-uu-tmp-dir "~/tmp/"
	  gnus-your-organization nil
;; message-* variables.
	  message-courtesy-message
	  "[ Courtesy, mailed copy of posted message (auto-generated). ]\n\n"
	  message-default-headers "Fcc: ~/Mail/.private/.outgoing\n"
	  message-directory "~/Mail/"
	  message-max-buffers 10
	  message-required-mail-headers
	  '(From (optional . Subject) Date (optional . In-Reply-To) Message-ID)
	  message-required-news-headers
	  '(From Newsgroups Subject Date Message-ID Organization Lines)
;; nnmail-* variables.
	  nnmail-delete-incoming t	; get rid of little bonuses.
	  nnmail-message-id-cache-file "~/Mail/.private/.nnmail-cache"
	  nnmail-split-methods
	  '(
	    ("personal.slaves"
	     "\\(From\\|Return-Path\\):.*\\(francine\\|tina\\)@.*charcoal\.com")

	    ("list.ding"
	     "Return-Path:.*ding-request@\\|\\(To\\|Cc\\):.*ding")
	    ("list.inn-gurus"
	     "Return-Path:.*\\(nntp-ext\\|inn-work\\)\\|\\(To\\|Cc\\):.*\\(nntp-ext\\|inn-work\\)")
	    ("list.guns"
	     "Return-Path:.*pa-rkba\\|\\(To\\|Cc\\):.*pa-rkba")
	    ("list.pa-pol"
	     "Return-Path:.*pa-politics\\|\\(To\\|Cc\\):.*pa-politics")
	    ("list.firearms-alert"
	     "Return-Path:.*firearms-alert\\|\\(To\\|Cc\\):.*firearms-alert")
	    ("list.frontiers"
	     "Return-Path:.*\\(server\\|frontiers\\)@vnet\\|\\(To\\|Cc\\):.*frontiers@")
	    ("list.general"
	     "\\(From\\|Return-Path\\):.*\\(majordomo@\\|majordom@\\|listserv@\\|listproc@\\)")
	    ("list.poll"
	     "Subject:.*poll:")

	    ("mailer-daemon"
	     "\\(From\\|Return-Path\\):.*\\(root\\|delivr\\|error\\|mailer\\|mmdf\\|network@\\|orphanage\\|postman\\|postmaster\\|uucp\\|usenet\\|news\\)")

	    ("personal.deborah"
	     "\\(From\\|Return-Path\\):.*\\(102422.2017\\|deborahb\\)")
	    ("personal.george"
	     "\\(From\\|Return-Path\\):.*\\(gjones\\|gmj\\)")
	    ("personal.michael"
	     "\\(From\\|Return-Path\\):.*\\(rdhogg\\|mbj\\)")
	    ("personal.jrm"
	     "\\(From\\|Return-Path\\):.*jrm@.*pgroup")
	    ("personal.mark"
	     "\\(From\\|Return-Path\\):.*\\(jms\\|jmark\\)")
	    ("personal.elf"
	     "\\(From\\|Return-Path\\):.*elf@\\(cs\\|keen\\)")
	    ("personal.anon"
	     "\\(From\\|Return-Path\\):.*@anon.penet.fi")
	    ("personal.compuserve"
	     "\\(From\\|Return-Path\\):.*@.*compuserve.com")
	    ("personal.cmu"
	     "\\(From\\|Return-Path\\):.*@.*cs.cmu.edu")
	    ("personal.jprc"
	     "\\(From\\|Return-Path\\):.*@jprc.com")

	    ("personal.karl"
	     "\\(From\\|Return-Path\\):.*Karl.*Kleinpaste")

	    ("personal.general"
	     ""))
	  nnmail-spool-file '("po:karl" "/var/spool/mail/karl")
	  nnmail-pop-password-required t
;; nnml-* variables.
	  nnml-directory "~/Mail/"
;; nntp-* variables.
;	  If we're using awkward telnet-to-telnet access:
;	  nntp-open-connection-function 'nntp-open-telnet
;	  nntp-end-of-line "\n"
;	  nntp-telnet-parameters '("exec" "telnet" "-8" "localhost" "nntp")
;	  nntp-telnet-user-name "karl"
	  )
;;
    (cond (window-system
;; X usage.  _Wide_ Emacs (164col) + split horizonally for *Article*.
	   (gnus-add-configuration
	    '(summary
	      (vertical 1.0
			(group 0.25)
			(summary 1.0 point))))
	   (gnus-add-configuration
	    '(article
	      (horizontal 1.0
			  (vertical 0.5
				    (group 0.25)
				    (summary 1.0 point))
			  (vertical 1.0
				    (article 1.0)))))
	   (gnus-add-configuration
	    '(pipe
	      (horizontal 1.0
			  (vertical 0.5
				    (group 0.25)
				    (summary 1.0 point))
			  (vertical 1.0
				    ("*Shell Command Output*" 1.0)))))
	   (gnus-add-configuration
	    '(edit-score
	      (horizontal 1.0
			  (vertical 0.5
				    (group 0.25)
				    (summary 1.0))
			  (vertical 1.0
				    (edit-score 1.0 point)))))
	   (gnus-add-configuration
	    '(mail-forward
	      (horizontal 1.0
			  (vertical 0.5
				    (group 0.25)
				    (summary 1.0))
			  (vertical 1.0
				    (mail 1.0 point)))))
	   (add-hook 'gnus-article-display-hook
		     'gnus-article-highlight-citation t)
	   (add-hook 'gnus-article-display-hook
		     'gnus-smiley-display t)
	   ;(setq gnus-cite-face-list 'dark)
	   (add-hook 'mail-mode-hook 'turn-on-font-lock)
	   (add-hook 'news-reply-mode-hook 'turn-on-font-lock)
	   )
;; Tty usage.
	  (t
	   (gnus-add-configuration
	    '(summary
	      (vertical 1.0
			(group 0.25) 
			(summary 1.0 point))))
	   (gnus-add-configuration
	    '(article
	      (vertical 1.0
			(group 0.2)
			(summary 0.2 point)
			(article 1.0))))
	   ))
;; Hooks.
    (add-hook 'gnus-summary-mode-hook 'mc-install-read-mode)
    (add-hook 'news-reply-mode-hook 'mc-install-write-mode)
    ))

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads