From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/9187 Path: news.gmane.org!not-for-mail From: Leo Newsgroups: gmane.emacs.gnus.user Subject: Re: archive NG msgs Date: Sun, 17 Jun 2007 10:51:05 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1182074045 30565 80.91.229.12 (17 Jun 2007 09:54:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 17 Jun 2007 09:54:05 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Sun Jun 17 11:54:02 2007 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HzrSM-00046y-1H for gegu-info-gnus-english@m.gmane.org; Sun, 17 Jun 2007 11:54:02 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HzrSL-0006XS-F5 for gegu-info-gnus-english@m.gmane.org; Sun, 17 Jun 2007 05:54:01 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HzrSJ-0006X8-1n for info-gnus-english@gnu.org; Sun, 17 Jun 2007 05:53:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HzrSH-0006Vy-1L for info-gnus-english@gnu.org; Sun, 17 Jun 2007 05:53:57 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HzrSG-0006Vp-L6 for info-gnus-english@gnu.org; Sun, 17 Jun 2007 05:53:56 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HzrRq-0005pL-Bc for info-gnus-english@gnu.org; Sun, 17 Jun 2007 05:53:56 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HzrRk-0006uo-KS for info-gnus-english@gnu.org; Sun, 17 Jun 2007 11:53:24 +0200 Original-Received: from sl392.st-edmunds.cam.ac.uk ([131.111.223.202]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 17 Jun 2007 11:53:24 +0200 Original-Received: from sdl.web by sl392.st-edmunds.cam.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 17 Jun 2007 11:53:24 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 31 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: sl392.st-edmunds.cam.ac.uk Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoBAMAAAB+0KVeAAAAG1BMVEUAAAA9Cgm3Hx1WWFWA gn+WmJWsrqv4+vcCAwCRl2MkAAAAAXRSTlMAQObYZgAAAAFiS0dEAIgFHUgAAAAJcEhZcwAAAYoA AAGKATOXMFgAAAAHdElNRQfXAQwDNR+ZJmElAAABIklEQVQoz22SPW+DQAyGWUq65qasd9PNUSX4 AZHK2C1rJy5jpDS4IwRVup9dn7GNafpKIPPgzztXFSujqq1eM2n8h22oMkvxI/i9C97kRfMRUN55 dS3BrsAwBXUtMLAO4lryh8kTjOxKpQNniNxAgZOEe4bZwsDTFhKdqZRLNII4OQNHhEuq/RMkm6Cj TnnEA/fk0BorcYn5qA3oaeAxbaBOLrX+9G48NZ2Fzc2tzDM8Q+tMypEOqYHh8mAWaaK3U/cDMOT5 aMZMABgPXc7zPMs1A8DXO756GFJ/4fMEq47hTsAdn5avoxZ4ywl0c2w4Flu2Ybeyb3S+EqxX2DYA H8veJGEDTnHnrXvRaPyt+2kSfK6rfBZ2tUtfP/mR+pR6sX8BUZ/cDV7tvkoAAAAASUVORK5CYII= User-Agent: Gnus/5.110007 Emacs 23 (20070616) MULE/6.0 (HANACHIRUSATO) Fedora 7 (gnu/linux) Cancel-Lock: sha1:/0b1RVVe4U9JHiJI4nnfo+kQdS4= X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:9187 Archived-At: ----- Dick Hoogendijk (2007-06-17) wrote:----- > I read lots of news and sometimes I want to save msgs for future > reference. I can mark them with 'u' but what I really want is copy > them to aan archive. "M c" copies alright but never remembers the name > of the archive(s). Is there some kind of shortway to 'archive' NG msgs > always to the same place? Be it nnimap, nnfolder or whatever.. > > Sure I can (mail) copy them with "C-c C-f" but I'd like it even more > automated and easy. Any tips? I use the following in my .gnus which I seem to copy from somewhere: (defun my-gnus-summary-archive-article () "Copy current article to a suitable nnml archive group. The copied article will be marked as \"ancient\", the original will retain its current marks." (interactive) (let* ((group-name (if (string-match "nnimap" gnus-newsgroup-name) gnus-newsgroup-name (car (last (split-string gnus-newsgroup-name ":"))))) (archive-name (concat "nnml:archive." group-name)) (orig-mark (gnus-summary-article-mark))) (gnus-summary-mark-article nil gnus-ancient-mark t) (gnus-summary-copy-article 1 archive-name) (gnus-summary-mark-article nil orig-mark t))) Best, -- Leo (GPG Key: 9283AA3F)