🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #116

Re: GNUS posting problem

#116
From: Kai 'Kaizzu' Kein{nen
Date: Wed, 26 Jun 1991 09:18
39 lines
2233 bytes
In <JBRYANS.91Jun25122912@beach.csulb.edu> jbryans@beach.csulb.edu (Jack Bryans) writes:

>Get your news admin to uncomment the "Lines header" generation code in inews,
>or your emacs admin to add the following to site-init.el or default.el, or add
>it to your .emacs:

>(setq gnus-Inews-article-hook
>      '(lambda()
>	 ;;Count the number of lines in the current posting and insert the
>	 ;;header line Lines into the message.
>	 (if (search-forward "\n\n")
>	     (let ((lines (count-lines (point) (point-max))))
>	       (forward-line -1)
>	       (insert-string "Lines: " lines "\n")))))

I prefer this:

(setq news-inews-hook
      '(lambda ()
         (let (lines)
           (save-excursion
             (goto-char (point-min))
             (search-forward mail-header-separator)
             (setq lines (- (count-lines (point) (point-max)) 1))
             (mail-position-on-field "Lines")
             (insert (format "%d" lines))))))

I use this because I have GNUS to send articles directly to relaynews
(kids, don't try this at home :)) when posting locally. Much faster
than waiting for C-news' inews.

I seem to be moving towards nn, though... with GNUS you end up
reading a whole bunch of articles you're not interested in.
-- 
------------------------------------------------------
-  Kai 'Kaizzu' Kein{nen  < - > kmk@cc.tut.fi        -
- Tampere University of Technology, Computing Center -
------------------------------------------------------
Technical Details
Message-ID: <1991Jun26.091800.28971@cc.tut.fi>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!spool.mu.edu!think.com!yale.edu!cmcl2!uupsi!sunic!sics.se!fuug!news.funet.fi!cc.tut.fi!kmk
References: <91175.183558DOUG@ysub.ysu.edu> <JBRYANS.91Jun25122912@beach.csulb.edu>

Show Full Headers
Complete Article Headers
Message-ID: <1991Jun26.091800.28971@cc.tut.fi>
Subject: Re: GNUS posting problem
Date: Wed, 26 Jun 1991 09:18:00 +0000
From: kmk@cc.tut.fi (Kai 'Kaizzu' Kein{nen)
References: <91175.183558DOUG@ysub.ysu.edu> <JBRYANS.91Jun25122912@beach.csulb.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!spool.mu.edu!think.com!yale.edu!cmcl2!uupsi!sunic!sics.se!fuug!news.funet.fi!cc.tut.fi!kmk
Newsgroups: news.software.readers
Organization: Tampere University of Technology, Finland
Lines: 38