From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/11087 Path: main.gmane.org!not-for-mail From: Ching-Mo Chang Newsgroups: gmane.emacs.gnus.general Subject: Re: saving to nnml groups Date: 23 May 1997 17:33:03 -0700 Sender: chang@twarp.auc.dk Message-ID: References: <873eresl3p.fsf@perv.daft.com> NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035150855 28201 80.91.224.250 (20 Oct 2002 21:54:15 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 21:54:15 +0000 (UTC) Return-Path: Original-Received: from sandy.calag.com (root@sandy [206.190.83.128]) by altair.xemacs.org (8.8.5/8.8.5) with ESMTP id UAA22208 for ; Sat, 24 May 1997 20:25:27 -0700 Original-Received: from xemacs.org (xemacs.cs.uiuc.edu [128.174.252.16]) by sandy.calag.com (8.8.5/8.8.5) with ESMTP id UAA07866 for ; Sat, 24 May 1997 20:25:13 -0700 Original-Received: from ifi.uio.no (0@ifi.uio.no [129.240.64.2]) by xemacs.org (8.8.5/8.8.5) with SMTP id WAA28835 for ; Sat, 24 May 1997 22:24:32 -0500 (CDT) Original-Received: from claymore.vcinet.com (claymore.vcinet.com [208.205.12.23]) by ifi.uio.no with SMTP (8.6.11/ifi2.4) id for ; Sat, 24 May 1997 02:33:09 +0200 Original-Received: (qmail 16765 invoked by uid 504); 24 May 1997 00:33:08 -0000 Original-Received: (qmail 16762 invoked from network); 24 May 1997 00:33:08 -0000 Original-Received: from sunsite.auc.dk (qmailr@130.225.51.30) by claymore.vcinet.com with SMTP; 24 May 1997 00:33:07 -0000 Original-Received: (qmail 19741 invoked by uid 509); 24 May 1997 00:33:04 -0000 Original-To: ding@gnus.org Original-Newsgroups: emacs.ding X-Newsreader: Gnus v5.4.53/Emacs 19.33 Original-Path: xtsd0509.it.wsu.edu Original-NNTP-Posting-Host: xtsd0509.it.wsu.edu Original-Lines: 44 Original-Xref: altair.xemacs.org dgnus-list:1476 Xref: main.gmane.org gmane.emacs.gnus.general:11087 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:11087 "Darren/Torin/Who Ever..." 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