From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/45794 Path: main.gmane.org!not-for-mail From: Karl Kleinpaste Newsgroups: gmane.emacs.gnus.general Subject: Re: B DEL is being treated as expiry? Date: Tue, 23 Jul 2002 14:09:19 -0400 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1027447812 2474 127.0.0.1 (23 Jul 2002 18:10:12 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 23 Jul 2002 18:10:12 +0000 (UTC) Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17X46q-0000df-00 for ; Tue, 23 Jul 2002 20:10:08 +0200 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 17X46Q-0004HP-00; Tue, 23 Jul 2002 13:09:42 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 23 Jul 2002 13:10:07 -0500 (CDT) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id NAA21781 for ; Tue, 23 Jul 2002 13:09:55 -0500 (CDT) Original-Received: (qmail 7394 invoked by alias); 23 Jul 2002 18:09:21 -0000 Original-Received: (qmail 7367 invoked from network); 23 Jul 2002 18:09:19 -0000 Original-Received: from mesquite.slip.cs.cmu.edu (HELO cinnamon.vanillaknot.com) (128.2.207.11) by gnus.org with SMTP; 23 Jul 2002 18:09:19 -0000 Original-Received: (from karl@localhost) by cinnamon.vanillaknot.com (8.11.6/8.11.6) id g6NI9JM03979; Tue, 23 Jul 2002 14:09:19 -0400 Original-To: ding@gnus.org X-Face: "5(T0tZd{6}pd~YzBG8O/*EW,.]6]@`m^e;fv65W^Y&=d"M\1H}>T~4_.kcDD.O~y3k)a6 hR;Nmi>9|>Nm${2IpM0^RcUEa\jcq?KOP)C&~x51l~zCHTulL^_T|u0I^kB'z@]{`2YjQu In-Reply-To: (prj@po.cwru.edu's message of "Tue, 23 Jul 2002 13:40:14 -0400") Original-Lines: 49 User-Agent: Gnus/5.090007 (Oort Gnus v0.07) XEmacs/21.4 (Honest Recruiter, i686-pc-linux) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:45794 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:45794 prj@po.cwru.edu (Paul Jarc) writes: > The backend interface must define how this is expressed, and all > backends must be made to conform to that specification. So make them conform. Why is this hard? I solved today's problem, so that things just plain *work* according to established intent -- so that -delete-article *stops making mistakes*. You have a view toward a different problem; feel free to solve that. I am of the opinion that this different problem is most readily solved merely by convincing the currently non-conforming backends to understand nnmail-expiry-target, plus adding 1 general function + keybinding to provide expire-right-now as well. > g-s-d-a is not supposed to know the details of how backends decide > what to do with expirable articles; it's only supposed to know what > to pass to nnchoke-request-expire-articles. -delete-article doesn't know squat about anything to do with expiry at all -- it isn't *doing* expiry so it doesn't *care* about expiry, other than to turn it off unconditionally. It deletes, nothing more and nothing less. Having been broken, it now does so again, more consistently and properly than it used to, apparently. It sounds like the problem you have is that there exists any use of nnmail-expiry-target. Feel free to redesign that, if the urge moves you, but I think you're working too hard. > The problem isn't specific to nnmaildir; your fix is specific to > nnmail-derived backends. I don't know, but I'd guess that it also > fails for nnimap. The fix is general with regard to _today's_ expectation that nnmail-expiry-target is the specified way to define expiry habits, by means of overriding any general expiry intention so that deletion, and only deletion, is what occurs. gnus-request-expire-articles works this way, and -delete-article accommodates it. > It isn't completely disjoint, because it's likely that we'll want to > use the same backend function for both purposes. (Otherwise we'll > be duplicating a significant amount of code.) Please. The totality of -delete-article is 40 lines. You can find numerous examples of duplicated code in Gnus much larger than that. Just wander through the various backends which are derived from one another. (Once upon a midnight dreary, nnml came out of nnspool.)