From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/48897 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: nnimap does not create non-existent groups on expiry (lost mail) Date: Wed, 08 Jan 2003 03:55:01 +0100 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 1041994585 30669 80.91.224.249 (8 Jan 2003 02:56:25 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 8 Jan 2003 02:56:25 +0000 (UTC) Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18W6OF-0007yV-00 for ; Wed, 08 Jan 2003 03:56:23 +0100 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 18W6Oa-0006IO-00; Tue, 07 Jan 2003 20:56:44 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 07 Jan 2003 20:57:38 -0600 (CST) Original-Received: from yxa.extundo.com (178.230.13.217.in-addr.dgcsystems.net [217.13.230.178]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id UAA12566 for ; Tue, 7 Jan 2003 20:57:24 -0600 (CST) Original-Received: from latte.josefsson.org (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.12.6/8.12.6) with ESMTP id h082t1Rr026114 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Wed, 8 Jan 2003 03:55:01 +0100 Original-To: ding@hpc.uh.edu Mail-Copies-To: nobody X-Payment: hashcash 1.1 0:030108:ding@hpc.uh.edu:63d48fb098369885 X-Hashcash: 0:030108:ding@hpc.uh.edu:63d48fb098369885 In-Reply-To: (Nevin Kapur's message of "Mon, 06 Jan 2003 22:12:31 -0500") User-Agent: Gnus/5.090011 (Oort Gnus v0.11) Emacs/21.3.50 (i686-pc-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:48897 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:48897 Nevin Kapur writes: > Simon Josefsson writes: > >> In theory it is the right thing, but various IMAP server bugs make the >> TRYCREATE stuff unreliable, so with your patch I believe nnimap would >> have sent a CREATE command for every expired article (which would have >> failed in the normal case). Does the following work instead? It also >> has the feature that no articles are expired if the group could not be >> created. > > I applied your patch, but I don't think it does the right thing. > Isn't it trying to create the (already existing) group from where the > function is being called rather than the target given by > nnmail-expiry-target? Oops! Right. > I took a stab at modifying the patch but ran into some difficulties. > I'm not sure if one should check for the existence of the target group > in the function nnimap-expiry-target when it is possible that > nnmail-expiry-target returns a non-nnimap group. > > Is it better to move the check inside nnimap-request-accept-article? I think it is more appropriate in nnmail-expiry-target-group. What do the nnmail experts say? Perhaps we can document this so it isn't a problem in the future: Is nnfoo-request-accept-article supposed to create the group if it does not exists, or is that up to the caller? The answer should go into the manual, I think.