From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/48831 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: Tue, 07 Jan 2003 00:07:05 +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 1041894577 25140 80.91.224.249 (6 Jan 2003 23:09:37 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 6 Jan 2003 23:09:37 +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 18VgNE-0006X8-00 for ; Tue, 07 Jan 2003 00:09:36 +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 18VgMV-0007Z0-00; Mon, 06 Jan 2003 17:08:51 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 06 Jan 2003 17:09:44 -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 RAA08388 for ; Mon, 6 Jan 2003 17:09:32 -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 h06N75Rr022180 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Tue, 7 Jan 2003 00:07:06 +0100 Original-To: ding@hpc.uh.edu Mail-Copies-To: nobody X-Payment: hashcash 1.1 0:030106:ding@hpc.uh.edu:6c2db13d8b49201e X-Hashcash: 0:030106:ding@hpc.uh.edu:6c2db13d8b49201e In-Reply-To: (Nevin Kapur's message of "Mon, 06 Jan 2003 13:36:30 -0500") User-Agent: Gnus/5.090011 (Oort Gnus v0.11) XEmacs/21.4 (Native Windows TTY Support, i686-pc-linux) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:48831 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:48831 Nevin Kapur writes: > I've made the following naive change and now nonexistent groups do get > created on expiry. Is this the right thing to do? If so, would > someone apply the patch? 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. Thanks for debugging this. Index: nnimap.el =================================================================== RCS file: /usr/local/cvsroot/gnus/lisp/nnimap.el,v retrieving revision 6.56 diff -u -p -u -w -r6.56 nnimap.el --- nnimap.el 2002/12/28 18:52:55 6.56 +++ nnimap.el 2003/01/06 23:08:26 @@ -1341,7 +1344,8 @@ function is generally only called when G imap-current-message)) (defun nnimap-expiry-target (arts group server) - (unless (eq nnmail-expiry-target 'delete) + (when (and (not (eq nnmail-expiry-target 'delete)) + (nnimap-request-create-group group server)) (with-temp-buffer (dolist (art arts) (nnimap-request-article art group server (current-buffer))