Gnus development mailing list
 help / color / mirror / Atom feed
* function to pack folders
@ 1998-02-02 18:22 Mark Moll
  1998-02-02 20:00 ` Colin Rafferty
  0 siblings, 1 reply; 2+ messages in thread
From: Mark Moll @ 1998-02-02 18:22 UTC (permalink / raw)
  Cc: mmoll+


I wrote this little function to renumber articles in my nnml folders. I
don't know that much about elisp, but this seemed a reasonable way to do it.
For some reason, however, I get the following error when I call the function 
below in the summary buffer.

      Symbol's value as variable is void: group

It's probably something very trivial, but can anybody tell me what I'm
doing wrong?

(defun mm-pack-folder ()
  "Renumber the articles such that holes in the numbering are removed."
  (interactive)
  (let ((group gnus-newsgroup-name)
	(folder (replace-in-string
		 (replace-in-string group 
				    "\\(nnml\\+archive:\\)\\(.*\\)"
				    "archive/\\2")
		 "\\(nnml:\\)\\(.*\\)" "\\2"))
	(dir (concat message-directory folder)))
    (call-process "gunzip" nil nil nil (concat dir "/*.gz"))
    (call-process "folder" nil nil nil (concat "+" folder) "-pack")
    (nnml-generate-nov-databases-1 (concat dir))
    (call-process "gzip" nil nil nil (concat dir "/*"))
    (gnus-summary-reselect-current-group)))

-- 
Mark Moll    


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

end of thread, other threads:[~1998-02-02 20:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-02-02 18:22 function to pack folders Mark Moll
1998-02-02 20:00 ` Colin Rafferty

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).