From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/68584 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: auto auto-expirable Date: Mon, 01 Jun 2009 20:20:00 +0900 Organization: Emacsen advocacy group Message-ID: References: <30336.1243827407@rawbw.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1243855293 25451 80.91.229.12 (1 Jun 2009 11:21:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 1 Jun 2009 11:21:33 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M17015@lists.math.uh.edu Mon Jun 01 13:21:31 2009 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1MB5a4-0000Ce-7I for ding-account@gmane.org; Mon, 01 Jun 2009 13:21:28 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1MB5ZW-0000w2-EP; Mon, 01 Jun 2009 06:20:54 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1MB5ZT-0000vi-IP for ding@lists.math.uh.edu; Mon, 01 Jun 2009 06:20:51 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1MB5ZM-00054S-TD for ding@lists.math.uh.edu; Mon, 01 Jun 2009 06:20:51 -0500 Original-Received: from orlando.hostforweb.net ([216.246.45.90]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1MB5Zq-0000tg-00 for ; Mon, 01 Jun 2009 13:21:14 +0200 Original-Received: from localhost ([127.0.0.1]:55397) by orlando.hostforweb.net with esmtpa (Exim 4.69) (envelope-from ) id 1MB5Yo-0006em-B9 for ding@gnus.org; Mon, 01 Jun 2009 06:20:10 -0500 X-Hashcash: 1:20:090601:ding@gnus.org::18wKqVcWGw2DFPkx:00002W84 X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.94 (gnu/linux) Cancel-Lock: sha1:m7fQa7hn1wkUXKXZIkCa+rQZFac= X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orlando.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:68584 Archived-At: >>>>> Didier Verna wrote: > Mike Kupfer wrote: >> Sometimes the scripts assign a message to the wrong folder. Currently, >> I just save the message to the correct folder and then deal with it >> while reading that other folder. >> >> Now, if I understand your proposal, it sounds like I would need to >> remember to clear the "expirable" mark before saving the message. If >> that's correct, it seems awkward and easy to forget to do. > When I face such situations, I usually move the article to the correct > group *before* reading it, so Katsumi's change would not affect you. In > the cases when the article is displayed for whatever reason, I also > usually M c it (before reading it), move it, and again read it from the > correct group. I'll do it like Didier, but I can agree with Mike. Maybe it will be better not to change the present behavior by default. So, I'm trying to make it customizable by the group parameter `auto-auto-expire'. It also provides the variable `gnus-auto-auto-expirable-newsgroups' as well; you can use it like `gnus-auto-expirable-newsgroups'. Probably I'll use the same value for both the variables. But the greatest difficulty is to summarize the document briefly in the first lines of the doc-strings: --8<---------------cut here---------------start------------->8--- (gnus-define-group-parameter auto-auto-expire :type bool :function gnus-group-auto-auto-expirable-p :function-document "Check whether articles that havie been read are automatically marked as expirable when moved to or copied to GROUP." :variable gnus-auto-auto-expirable-newsgroups :variable-default nil :variable-document "Groups in which articles that have been read are automatically marked as expirable when moved to or copied to there. If non-nil, this should be a regexp that should match all groups in which to perform auto auto-expiry. If this is nil or the group name does not match this, the expirable marks of articles that have been read will remain (not be set forcibly) when they are moved to or copied to the group in which to perform auto-expiry. This only makes sense for mail groups." :variable-group nnmail-expire :variable-type '(choice (const nil) regexp) :parameter-type '(const :tag "Automatic Auto-Expire" t) :parameter-document "Article that have been read will be automatically marked as expirable when moved to or copied to this group if this group is set to perform auto-expiry.") --8<---------------cut here---------------end--------------->8--- Could anyone make it cool?