Gnus development mailing list
 help / color / mirror / Atom feed
* reading the cache in nnspool when it has articles from non-primary groups
@ 1997-06-02  1:08 Greg Stark
  1997-06-03 14:55 ` Roderick Schertler
  1997-06-06  3:21 ` Lars Magne Ingebrigtsen
  0 siblings, 2 replies; 3+ messages in thread
From: Greg Stark @ 1997-06-02  1:08 UTC (permalink / raw)
  Cc: ding

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 6270 bytes --]

Gnus v5.4.52; 2.0; nntp 5.0; nnspool 2.0; nnfolder 1.0
GNU Emacs 19.34.1 (i386-debian-linux-gnu, X toolkit) of Sun Mar 16 1997 on depreciation



I followed the instructions for making an nnspool group to read the cache, but
it seems to have trouble reading articles cached from groups that aren't my
primary select method.

Also, there seem to be .overview files in the cache, why does the info file
suggest i use nnspool instead of something could take advantage of the
.overview files like nndir or nnml?


Details of the bug report:

I get the following backtrace if i put a (debug pathname) in
nnspool-request-group: 

("/home/gsstark/News/cache/kaffe/")
  (let ((pathname ...) dir) (debug pathname) (if (not ...) (nnheader-report ... "Invalid group name (no such directory): %s" group) (setq nnspool-current-directory pathname) (nnheader-report ... "Selected group %s" group) (if dont-check ... ... ...)))
  nnspool-request-group("kaffe" "cache" t)
  gnus-request-group("nndsc:kaffe" t)
  gnus-select-newsgroup("nndsc:kaffe" t)
  gnus-summary-read-group-1("nndsc:kaffe" t t nil nil)
  gnus-summary-read-group("nndsc:kaffe" t t nil nil)
  gnus-group-read-group(t t "nndsc:kaffe")
  byte-code("ÀÁ\211\n#\205^I^@\n\207" [gnus-group-read-group t group] 4)
  gnus-group-read-ephemeral-group("nndsc:kaffe" (nnspool "cache" (nnspool-spool-directory "~/News/cache/") (nnspool-nov-directory "~/News/cache/") (nnspool-active-file "~/News/cache/active")) nil (#<buffer *Gnus Browse Server*> . browse))
  gnus-browse-read-group(no)
  gnus-browse-select-group()
* call-interactively(gnus-browse-select-group)

but the actual ~/News/cache directory looks like this:
$ ls -l ~/News/cache
total 6
-rw-r--r--   1 gsstark  gsstark        21 Jun  1 00:44 active
drwxr-xr-x   2 gsstark  gsstark      1024 May 31 14:38 nndsc:Bug_GNU_Emacs
drwxr-xr-x   2 gsstark  gsstark      1024 Jun  1 02:44 nndsc:kaffe


for reference, here is the nnspool:cache server:

(nnspool "cache"
	 (nnspool-spool-directory "~/News/cache/")
	 (nnspool-nov-directory "~/News/cache/")
	 (nnspool-active-file "~/News/cache/active"))

and the ~/News/cache/active file:
nndsc:kaffe 736 61 y

The group name for the cache server group for nndsc:kaffe in the .newsrc.eld
file is: "nnspool+cache:nndsc:kaffe"


------------------ Environment follows ------------------

(setq gnus-default-nntp-server "")
(setq gnus-nntpserver-file "/etc/news/server")
(setq gnus-select-method
      '(nntp "news.citenet.net"))
(setq gnus-secondary-servers
      '("nnfolder:mail" "nndsc:discuss"))
(setq gnus-startup-file "~/News/.newsrc")
(setq gnus-no-groups-message "No news is no news")
(setq gnus-split-methods
      '((gnus-article-archive-name)
	(gnus-article-nndoc-name)))
(setq gnus-use-cache t)
(setq gnus-keep-backlog 3)
(setq gnus-verbose 100)
(setq gnus-check-new-newsgroups nil)
(setq gnus-read-active-file
      'some)
(setq gnus-activate-level 3)
(setq gnus-activate-foreign-newsgroups 3)
(setq gnus-save-newsrc-file nil)
(setq gnus-save-killed-list nil)
;; (makeunbound 'gnus-kill-killed)
(setq gnus-list-groups-with-ticked-articles nil)
(setq gnus-group-list-inactive-groups nil)
(setq gnus-decode-encoded-word-method
      'gnus-article-de-quoted-unreadable)
(setq gnus-thread-indent-level 2)
(setq gnus-ignored-headers
      '("^Path:" "^Posting-Version:" "^Article-I.D.:" "^Expires:" "^Date-Received:" "^References:" "^Control:" "^Xref:" "^Lines:" "^Posted:" "^Relay-Version:" "^Message-ID:" "^Nf-ID:" "^Nf-From:" "^Approved:" "^Sender:" "^Received:" "^Mail-from:"))
(setq gnus-visible-headers "^From:\\|^Newsgroups:\\|^Subject:\\|^Date:\\|^Followup-To:\\|^Reply-To:\\|^Organization:\\|^Summary:\\|^Keywords:\\|^To:\\|^Cc:\\|^Posted-To:\\|^Mail-Copies-To:\\|^Apparently-To:\\|^Gnus-Warning:\\|^Resent-From")
(setq gnus-sorted-header-list
      '("^From:" "^Subject:" "^Summary:" "^Keywords:" "^Newsgroups:" "^Followup-To:" "^To:" "^Cc:" "^Date:" "^Organization:"))
(setq gnus-signature-separator
      '("^-- $" "^-- *$"))
(setq gnus-auto-select-next nil)
(setq gnus-summary-check-current t)
(setq gnus-view-pseudo-asynchronously t)
(setq gnus-group-line-format " %p%S %P%5y %L: %(%G%) %z\n")
(setq gnus-valid-select-methods
      '(("nndsc" none)
	("nntp" post address prompt-address physical-address)
	("nnspool" post address)
	("nnvirtual" post-mail virtual prompt-address)
	("nnmbox" mail respool address)
	("nnml" mail respool address)
	("nnmh" mail respool address)
	("nndir" post-mail prompt-address physical-address)
	("nneething" none address prompt-address physical-address)
	("nndoc" none address prompt-address)
	("nnbabyl" mail address respool)
	("nnkiboze" post virtual)
	("nnsoup" post-mail address)
	("nndraft" post-mail)
	("nnfolder" mail respool address)
	("nngateway" none address prompt-address physical-address)
	("nnweb" none)))
(setq gnus-auto-expirable-newsgroups "^nnfolder:")
(setq gnus-total-expirable-newsgroups "^nnfolder")
(setq gnus-group-mode-hook
      '(gnus-topic-mode))
(setq gnus-summary-prepare-exit-hook
      '(gnus-summary-expire-articles))
(setq gnus-summary-exit-hook
      '(gnus-topic-update-topic))
(setq gnus-group-catchup-group-hook
      '(gnus-topic-update-topic))
(setq gnus-after-getting-new-news-hook
      '(display-time-event-handler))
(setq gnus-parse-headers-hook
      '(gnus-decode-rfc1522))
(setq gnus-group-change-level-function
      'gnus-topic-change-level)
;; (makeunbound 'gnus-global-score-files)
;; (makeunbound 'gnus-score-file-single-match-alist)
;; (makeunbound 'gnus-score-file-multiple-match-alist)
;; (makeunbound 'gnus-score-file-suffix)
;; (makeunbound 'gnus-adaptive-file-suffix)
;; (makeunbound 'gnus-score-find-score-files-function)
;; (makeunbound 'gnus-score-interactive-default-score)
;; (makeunbound 'gnus-score-expiry-days)
;; (makeunbound 'gnus-update-score-entry-dates)
;; (makeunbound 'gnus-orphan-score)
;; (makeunbound 'gnus-default-adaptive-score-alist)
;; (makeunbound 'gnus-score-mimic-keymap)
;; (makeunbound 'gnus-score-exact-adapt-limit)
;; (makeunbound 'gnus-score-uncacheable-files)
;; (makeunbound 'gnus-score-default-header)
;; (makeunbound 'gnus-score-default-type)
;; (makeunbound 'gnus-score-default-fold)
;; (makeunbound 'gnus-score-default-duration)
;; (makeunbound 'gnus-score-after-write-file-function)


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

* Re: reading the cache in nnspool when it has articles from non-primary groups
  1997-06-02  1:08 reading the cache in nnspool when it has articles from non-primary groups Greg Stark
@ 1997-06-03 14:55 ` Roderick Schertler
  1997-06-06  3:21 ` Lars Magne Ingebrigtsen
  1 sibling, 0 replies; 3+ messages in thread
From: Roderick Schertler @ 1997-06-03 14:55 UTC (permalink / raw)
  Cc: ding

On 01 Jun 1997 21:08:57 -0400, Greg Stark <gsstark@MIT.EDU> said:
> 
> Also, there seem to be .overview files in the cache, why does the info
> file suggest i use nnspool instead of something could take advantage
> of the .overview files like nndir or nnml?

nnspool does read overview files.

-- 
Roderick Schertler
roderick@argon.org


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

* Re: reading the cache in nnspool when it has articles from non-primary groups
  1997-06-02  1:08 reading the cache in nnspool when it has articles from non-primary groups Greg Stark
  1997-06-03 14:55 ` Roderick Schertler
@ 1997-06-06  3:21 ` Lars Magne Ingebrigtsen
  1 sibling, 0 replies; 3+ messages in thread
From: Lars Magne Ingebrigtsen @ 1997-06-06  3:21 UTC (permalink / raw)


Greg Stark <gsstark@mit.edu> writes:

>   nnspool-request-group("kaffe" "cache" t)
>   gnus-request-group("nndsc:kaffe" t)
>   gnus-select-newsgroup("nndsc:kaffe" t)
>   gnus-summary-read-group-1("nndsc:kaffe" t t nil nil)
>   gnus-summary-read-group("nndsc:kaffe" t t nil nil)
>   gnus-group-read-group(t t "nndsc:kaffe")
>   byte-code("ÀÁ\211\n#\205^I^@\n\207" [gnus-group-read-group t group] 4)
>   gnus-group-read-ephemeral-group("nndsc:kaffe" (nnspool "cache" (nnspool-spool-directory "~/News/cache/") (nnspool-nov-directory "~/News/cache/") (nnspool-active-file "~/News/cache/active")) nil (#<buffer *Gnus Browse Server*> . browse))

The problem here is that the group is improperly named.  It should be
called "nnspool+cache:nndsc:kaffe", I think.  Probably.

Ah.  A brain fart in `gnus-group-read-ephemeral-group'.  Possibly
fixed in Gnus 5.4.57.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen


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

end of thread, other threads:[~1997-06-06  3:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-06-02  1:08 reading the cache in nnspool when it has articles from non-primary groups Greg Stark
1997-06-03 14:55 ` Roderick Schertler
1997-06-06  3:21 ` Lars Magne Ingebrigtsen

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 NNTP newsgroup(s).