From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/45826 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: [PATCH] nnmail-fancy-expiry-target Date: Fri, 26 Jul 2002 18:43:30 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: References: <87sn2fiznh.fsf@hal.Olympus.INVALID> <87eldyajuu.fsf@hal.Olympus.INVALID> <87wuripnnr.fsf@hal.Olympus.INVALID> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1027701847 27223 127.0.0.1 (26 Jul 2002 16:44:07 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 26 Jul 2002 16:44:07 +0000 (UTC) Cc: ding@gnus.org 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 17Y8CD-00074q-00 for ; Fri, 26 Jul 2002 18:44:06 +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 17Y8C8-00019B-00; Fri, 26 Jul 2002 11:44:00 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 26 Jul 2002 11:44:25 -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 LAA28367 for ; Fri, 26 Jul 2002 11:44:11 -0500 (CDT) Original-Received: (qmail 15823 invoked by alias); 26 Jul 2002 16:43:41 -0000 Original-Received: (qmail 15818 invoked from network); 26 Jul 2002 16:43:40 -0000 Original-Received: from 178.230.13.217.in-addr.dgcsystems.net (HELO yxa.extundo.com) (217.13.230.178) by gnus.org with SMTP; 26 Jul 2002 16:43:40 -0000 Original-Received: from latte.josefsson.org (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.12.5/8.12.5) with ESMTP id g6QGhUkd030671; Fri, 26 Jul 2002 18:43:30 +0200 Original-To: "Davide G.M.Salvetti" Mail-Copies-To: nobody X-Hashcash: 020726:salve@debian.org:03ef0e2e6367b7e2 X-Hashcash: 020726:ding@gnus.org:43b27cf1eb22fc69 In-Reply-To: <87wuripnnr.fsf@hal.Olympus.INVALID> ("Davide G.M.Salvetti"'s message of "Fri, 26 Jul 2002 16:30:16 +0200") Original-Lines: 40 User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2 (i386-debian-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:45826 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:45826 "Davide G.M.Salvetti" writes: > [Nevin, I seem to have problems posting to ding. Will you please check > if this message also shows there, as it should? Thanks.] > >>>>>> "Nevin" == Nevin Kapur writes: > > Nevin> The patch I posted yesterday will work around this by ignoring > Nevin> such empty buffers and more generally, non-existent headers. > > Ok. Yet there are two problems still. > > 1. If the target (nnimap) group where expired articles should go doesn't > already exists, the articles will be deleted instead (with no error > signaled to the user). Does this patch fix it? --- nnimap.el.~6.37.~ 2002-07-10 18:19:30.000000000 +0200 +++ nnimap.el 2002-07-26 18:42:11.000000000 +0200 @@ -1296,6 +1296,8 @@ (defun nnimap-expiry-target (arts group server) (unless (eq nnmail-expiry-target 'delete) (with-temp-buffer + (or (imap-mailbox-status group 'UIDVALIDITY) + (imap-mailbox-create group)) (dolist (art (gnus-uncompress-sequence arts)) (nnimap-request-article art group server (current-buffer)) ;; hints for optimization in `nnimap-request-accept-article' > 2. If you have a large hole in the article number sequence (say, you > have an IMAP group with a three months old ticked article, then a > large gap of expired articles and then some new articles), the > expiring process takes for ever. I guess that's because Gnus request > a lot of non existing articles from the IMAP server, even if it needs > not to. Could you profile this to find out what is taking time? It is difficult to improve it otherwise. It may be range calculations that is taking time, then I'm afraid there may be little to do right now.