From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/48259 Path: main.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: Re: Expiring and keeping marks Date: Sun, 29 Dec 2002 16:27:10 +0100 Organization: Programmerer Ingebrigtsen Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1041176030 31345 80.91.224.249 (29 Dec 2002 15:33:50 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 29 Dec 2002 15:33:50 +0000 (UTC) Return-path: Original-Received: from util1.math.uh.edu ([129.7.128.22]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18SfRk-00089O-00 for ; Sun, 29 Dec 2002 16:33:48 +0100 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by util1.math.uh.edu with esmtp (Exim 4.10) id 18SfLe-0004TG-00; Sun, 29 Dec 2002 09:27:30 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sun, 29 Dec 2002 09:28:21 -0600 (CST) Original-Received: from quimby.gnus.org (quimby.gnus.org [80.91.224.244]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id JAA08749 for ; Sun, 29 Dec 2002 09:28:07 -0600 (CST) Original-Received: from news by quimby.gnus.org with local (Exim 3.12 #1 (Debian)) id 18SfLi-00012k-00 for ; Sun, 29 Dec 2002 16:27:34 +0100 Original-To: ding@hpc.uh.edu Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 26 Original-NNTP-Posting-Host: quimbies.gnus.org Original-X-Trace: quimby.gnus.org 1041175654 4013 80.91.231.2 (29 Dec 2002 15:27:34 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 29 Dec 2002 15:27:34 GMT Mail-Copies-To: never X-Now-Playing: =?iso-8859-1?q?Bj=F6rk's?= _It's In Our Hands_: "Soft Pink Truth mix" User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2.50 (i686-pc-linux-gnu) X-Face: |J writes: > I use expire to move messages from one folder to another that will > have a backup on CD. The problem is that when a message is expired, it > looses all its marks (specially the read mark), making the folder > appear on the list with unread messages. OK, I can press "c" on that > folder and have all messages marked as read, but it would be much > better if I had to do nothing. The problem is that the expiry move is done from a rather low level -- it's actually implemented in `nn*-request-expire-articles', which has no concept of article marks at all. So copying over marks would probably require lots of hacking around. (Well, I've looked over the code, and it actually wouldn't be all that difficult. The most fiddly bit would be to actually copy over the marks. Is there a function pair in Gnus that gets/sets article marks for arbitrary groups? I can't recall writing such functions, but perhaps somebody else have?) Anyway, I've now made `nnmail-expiry-target-group' mark articles as read when it copies them over, which is simple enough to do. -- (domestic pets only, the antidote for overdose, milk.) larsi@gnus.org * Lars Magne Ingebrigtsen