From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/33485 Path: main.gmane.org!not-for-mail From: ShengHuo ZHU Newsgroups: gmane.emacs.gnus.general Subject: Re: how does expiry-target work? Date: 22 Nov 2000 17:11:59 -0500 Sender: owner-ding@hpc.uh.edu Message-ID: <2naearodw0.fsf@tiger.jia.vnet> References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035169582 25386 80.91.224.250 (21 Oct 2002 03:06:22 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:06:22 +0000 (UTC) Return-Path: Original-Received: from spinoza.math.uh.edu (spinoza.math.uh.edu [129.7.128.18]) by mailhost.sclp.com (Postfix) with ESMTP id CB47AD049B for ; Wed, 22 Nov 2000 17:12:26 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by spinoza.math.uh.edu (8.9.1/8.9.1) with ESMTP id QAB28317; Wed, 22 Nov 2000 16:12:03 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 22 Nov 2000 16:11:28 -0600 (CST) Original-Received: from mailhost.sclp.com (postfix@66-209.196.61.interliant.com [209.196.61.66] (may be forged)) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id QAA02592 for ; Wed, 22 Nov 2000 16:11:17 -0600 (CST) Original-Received: from zsh.yi.org (d185fc155.rochester.rr.com [24.95.193.85]) by mailhost.sclp.com (Postfix) with ESMTP id 29A45D049B for ; Wed, 22 Nov 2000 17:11:43 -0500 (EST) Original-Received: (from zsh@localhost) by zsh.yi.org (8.10.0/8.10.0) id eAMMBxt00378; Wed, 22 Nov 2000 17:11:59 -0500 Original-To: ding@gnus.org X-Attribution: ZSH X-Face: 'IF:e51ib'Qbl^(}l^&4-J`'P!@[4~O|&k#:@Gld#b/]oMq&`&FVY._3+b`mzp~Jeve~/#/ ERD!OTe<86UhyN=l`mrPY)M7_}`Ktt\K+58Z!hu7>qU,i.N7TotU[FYE(f1;}`g2xj!u*l`^&=Q!g{ *q|ddto|nkt"$r,K$[)"|6,elPH= GJ6Q In-Reply-To: Original-Lines: 37 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:33485 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:33485 janneke@gnu.org writes: > Ah, that's it. You can see from my comments that I haven't really > grasped the finer details of Gnus, but here's a start that seems to > work. It may need some cleaning, possibly by someone who knows the > answer to my comments. [...] > +;; Do we need this? We can't seem to use nnmail-expiry-target-group. > +;; What exacty is generic, and what's backend (nnmail, nnml, nnheader)? > +;; -- jcn We can use nnmail-expiry-target-group. nnml is a backend. nnmail and nnheader are mail support functions for Gnus backends. [...] > @@ -263,6 +289,13 @@ > (setq is-old > (nnmail-expired-article-p newsgroup mod-time force))) > (progn > + ;; Allow a special target group. -- jcn > + (unless (eq nnmh-expiry-target 'delete) > + (with-temp-buffer > + (nnmh-request-article (car articles) > + newsgroup server (current-buffer)) > + (nnmh-expiry-target-group > + nnmh-expiry-target group))) > (nnheader-message 5 "Deleting article %s in %s..." > article newsgroup) > (condition-case () I guess we only need this part after replacing nnmh with nnmail. ShengHuo