From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/48838 Path: main.gmane.org!not-for-mail From: Nevin Kapur Newsgroups: gmane.emacs.gnus.general Subject: Re: nnimap does not create non-existent groups on expiry (lost mail) Date: Mon, 06 Jan 2003 22:12:31 -0500 Organization: Mathematical Sciences, The Johns Hopkins University 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 1041909266 11051 80.91.224.249 (7 Jan 2003 03:14:26 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 7 Jan 2003 03:14:26 +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 18VkC8-0002rz-00 for ; Tue, 07 Jan 2003 04:14:24 +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 18VkBu-0001Ht-00; Mon, 06 Jan 2003 21:14:10 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 06 Jan 2003 21:15:04 -0600 (CST) Original-Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id VAA08761 for ; Mon, 6 Jan 2003 21:14:52 -0600 (CST) Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 18Vk9I-0002jy-00 for ; Tue, 07 Jan 2003 04:11:28 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@hpc.uh.edu Original-Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 18Vk9I-0002jo-00 for ; Tue, 07 Jan 2003 04:11:28 +0100 Original-Path: not-for-mail Original-Lines: 41 Original-X-Complaints-To: usenet@main.gmane.org Mail-Copies-To: never User-Agent: Gnus/5.090011 (Oort Gnus v0.11) Emacs/21.2 (i686-pc-linux-gnu) Cancel-Lock: sha1:b/y4lUzi+VFBShqiWuGQRYt7Sws= Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:48838 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:48838 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? 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? Index: lisp/nnimap.el =================================================================== RCS file: /usr/local/cvsroot/gnus/lisp/nnimap.el,v retrieving revision 6.56 diff -u -r6.56 nnimap.el --- lisp/nnimap.el 2002/12/28 18:52:55 6.56 +++ lisp/nnimap.el 2003/01/07 03:09:43 @@ -1413,7 +1413,8 @@ result)))) (deffoo nnimap-request-accept-article (group &optional server last) - (when (nnimap-possibly-change-server server) + (when (and (nnimap-possibly-change-server server) + (nnimap-request-create-group group)) (let (uid) (if (setq uid (if (string= nnimap-current-server nnimap-current-move-server) -Nevin