🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #194085

Re: [gnus] Very High CPU usage and LONG load time

#194085
From: Hadron Quark
Date: Mon, 01 Jan 2007 17:46
123 lines
5386 bytes
SINNER <99nesorjd@gates_of_hell.invalid> writes:

> * Hadron Quark wrote in news.software.readers:
>> SINNER <99nesorjd@gates_of_hell.invalid> writes:
>
> [...]
>
>> Install emacs-snapshot for a start
>
> The description doesn't say much but I am not sure how this will help.
>
>> lookup "topics" in gnus for managing subscribed groups
>
>> lookup gnus posting styles for handling of usenet accounts
>
>> lookup smart hosts for smtp mail delivery (smtpmail)
>
>> lookup w3m for in frame web browsing (shit IMO)
>
> All good and appreciated but before I get into customization, it needs to
> start in less than 15 minutes or I wont bother with it.
>
> [...]

Here, as promised is my .gnus.el : its pretty amateurish compared to
some but it will give you some ideas to get started. Notice the
"myspecifics" - this is more private data such as pgg data,
gnus-posting-styles and fs-change-smtp (all googleable).

------------------------------------------------------

,----
| (require 'sigbegone)
| (require 'myspecifics)
| (require 'bbdb-vcard-export)
| 
| (setq spam-use-spamassassin t)
| (require 'spam)
| 
| ;; expansion of email addresses and aliases.
| (require 'mailabbrev)
| (setq gnus-Startup-hook '(lambda () (require 'bbdb-gnus)))
| (bbdb-initialize 'gnus 'message)
| (add-hook 'message-setup-hook 'bbdb-define-all-aliases)
| 
| ;; leafnode runs as nnto server on localhost
| (setq gnus-select-method '(nntp "localhost"))
| 
| ;; potentially delay all sends until exit time.
| ;;(setq smtpmail-queue-mail t)
| ;;(add-hook 'gnus-exit-gnus-hook 'smtpmail-send-queued-mail)
| 
| ;; Always want to see important groups regardless of whether they are empty.
| (setq gnus-permanently-visible-groups "^\(inbox\|hadron\).*") 
| 
| ;; group topics
| (add-hook 'gnus-group-mode-hook 'gnus-topic-mode)
| 
| 
| ;; when replying we dont want to include peoples signatures.
| (setq message-cite-function 'message-cite-original-without-signature)
| 
| ;; How gnus gets address from the from header.
| (setq gnus-extract-address-components
|       'mail-extract-address-components)
| 
| ;;smtp support. Maildir format.
| (add-to-list 'gnus-secondary-select-methods
| '(nnmaildir "MyMail" (directory "~/Mail")))
| 	
| (setq message-send-mail-function 'smtpmail-send-it)
| (setq smtpmail-default-smtp-server "smtp.gmail.com")
| (setq smtpmail-smtp-server "smtp.gmail.com")
| (setq smtpmail-smtp-service 587)
| 
| ;; we are all a bit egotistical and interested in our own ...
| (add-hook 'message-sent-hook 'gnus-score-followup-article)
| (add-hook 'message-sent-hook 'gnus-score-followup-thread) 
| 
| ;; setup gnus to store outgoing emails in an archive a new archive
| ;; each month......
| (setq gnus-message-archive-group
|       '((if (message-news-p)
|             "misc-news"
|           (concat "mail." (format-time-string
|                            "%Y-%m" (current-time))))))
| 
| ;; get new news automatically
| (gnus-demon-init)
| (add-hook 'gnus-startup-hook
|           '(lambda ()
|              (gnus-demon-add-handler 'gnus-group-get-new-news 10 0))) 
| 
| ;; How gnus does scoring....
| (setq gnus-use-adaptive-scoring t)
| (setq gnus-kill-files-directory "~/.gnuskillfiled/")
| (setq gnus-decay-scores t)
| 
| ;; Wrap at 72 cols, auto fill and have spell checking corrections on F2
| (add-hook 'message-mode-hook
| 	  '(lambda()
| 	     (turn-on-auto-fill)
| 	     (setq fill-column 72)
| 	     (flyspell-mode)
| 	     (define-key message-mode-map (kbd "<f2>") 'ispell-word)
| 	     )
| 	  )
| 
| (defun cg-gnus-summary-ignore-thread ()
|   (interactive)
|   (let* ((hdr (gnus-summary-article-header))
|          (subj (aref hdr 1)))
|     (gnus-summary-score-entry "Subject" subj 'S' -1000
|                               (current-time-string))
|     (gnus-summary-limit-to-unread)
|     (gnus-summary-scroll-up 0)))
| 
| ;;F5 killfiles a posder, F6 ignores a thread
| (define-key gnus-summary-mode-map (kbd "<f5>") "LA")
| (define-key gnus-summary-mode-map (kbd "<f6>") 'cg-gnus-summary-ignore-thread)
`----

-- 
Technical Details
Message-ID: <87sleuvdvq.fsf@gmail.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news1.uni-leipzig.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <v0mo54xm7h.ln2@news.gates-of-hell.com> <iswt4luhbu.fsf@gmail.com> <76ir54x3fo.ln2@news.gates-of-hell.com>

Show Full Headers
Complete Article Headers
Message-ID: <87sleuvdvq.fsf@gmail.com>
Subject: Re: [gnus] Very High CPU usage and LONG load time
Date: Mon, 01 Jan 2007 18:46:33 +0100
From: Hadron Quark <hadronquark@gmail.com>
References: <v0mo54xm7h.ln2@news.gates-of-hell.com> <iswt4luhbu.fsf@gmail.com> <76ir54x3fo.ln2@news.gates-of-hell.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news1.uni-leipzig.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
Newsgroups: news.software.readers
Lines: 123
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: individual.net OVA6FfMkifvW45GqaKw7Nw8abjMtalZcKWqALmVtce0NGJBHBn
X-Orig-Path: news.individual.net!news
X-Face: 2h#||Cd#d%F*NCm59[_6/{1a@jy%;
 |j>{D~4^gKg(^i%7j0IK?+<E"~~VEHpAJ&'G+cu0g&
 $xE$h&Kjg@6-s8\aR, (o3Z]m)d.cAU-y!i/G'}}$WId)8Uh3TpmTQSRis6,
 U`NQ8IWIda}W:tIo=Bb 2M]M7$V[!_P*Mb9YnDD@W6z9TLk7/>,/GmW&:CD5fEKb_!
Cancel-Lock: sha1:uOF9v+/q7103De2blMOP3/K+Mz0=