Gnus development mailing list
 help / color / mirror / Atom feed
From: Ching-Mo Chang <chang@wsu.edu>
Subject: Re: saving to nnml groups
Date: 23 May 1997 17:33:03 -0700	[thread overview]
Message-ID: <changvi49r6wg.fsf@wsu.edu> (raw)
In-Reply-To: <873eresl3p.fsf@perv.daft.com>

"Darren/Torin/Who Ever..." <torin@daft.com> writes:

> 1) How do I save articles so that they appear in the .overview files?
>    If I just use gnus-summary-save-in-folder, it just uses rcvstore
>    which won't help.  I want to use gnus+nnml to read folders I save to.

I use `gnus-summary-save-in-nnml' as below. It was modified from
`gnus-summary-save-in-mail' function. It save current article to
`gnus-newsgroup-name' folder in "~/News/archive". It will update
the .overview and active files. I hope someone with more experiences
can provide a better one for this. 


(defun gnus-summary-save-in-nnml (&optional arg1 arg2)
  "Save this article using `nnml'."
  (interactive)
  (gnus-set-global-variables)
  (gnus-eval-in-buffer-window gnus-save-article-buffer
    (save-excursion
      (save-restriction
	(widen)
	(let ((nnml-directory "~/News/archive")
	      (nnml-active-file "~/News/archive/active"))
	  (nnml-request-accept-article gnus-newsgroup-name)
	  (nnml-save-nov))
	))))

(setq gnus-default-article-saver 'gnus-summary-save-in-nnml)

(defun gnus-summary-save-article-nnml (&optional arg)
  "Save the current article using `nnml'.
If N is a positive number, save the N next articles.
If N is a negative number, save the N previous articles.
If N is nil and any articles have been marked with the process mark,
save those articles instead."
  (interactive "P")
  (gnus-set-global-variables)
  (let ((gnus-default-article-saver 'gnus-summary-save-in-nnml))
    (gnus-summary-save-article arg)))


-- 
Ching-Mo Chang <chang@wsu.edu> <chang@theta.math.wsu.edu>


  parent reply	other threads:[~1997-05-24  0:33 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-05-23  7:28 Darren/Torin/Who Ever...
1997-05-23  8:01 ` Kai Grossjohann
1997-05-23 14:26   ` Sudish Joseph
1997-05-23 14:51     ` Kai Grossjohann
1997-05-23 17:20       ` Sudish Joseph
1997-05-23 17:37       ` Sudish Joseph
1997-05-24 23:37     ` Darren/Torin/Who Ever...
1997-05-24 23:32   ` Darren/Torin/Who Ever...
1997-05-24  0:33 ` Ching-Mo Chang [this message]
1997-06-06 17:48 ` Paul Graham
1997-06-11  1:19   ` Lars Magne Ingebrigtsen
1997-06-16 17:51     ` Paul Graham
1997-06-17 16:02       ` Lars Magne Ingebrigtsen
1997-06-23 14:56         ` Paul Graham
1997-06-30 23:03           ` Lars Magne Ingebrigtsen
1997-06-18  1:19       ` David Moore

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=changvi49r6wg.fsf@wsu.edu \
    --to=chang@wsu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).