Gnus development mailing list
 help / color / mirror / Atom feed
From: Simon Josefsson <jas@extundo.com>
Cc: ding@gnus.org
Subject: Re: [PATCH] nnmail-fancy-expiry-target
Date: Fri, 26 Jul 2002 18:43:30 +0200	[thread overview]
Message-ID: <ilu7kji30el.fsf@latte.josefsson.org> (raw)
In-Reply-To: <87wuripnnr.fsf@hal.Olympus.INVALID> ("Davide G.M.Salvetti"'s message of "Fri, 26 Jul 2002 16:30:16 +0200")

"Davide G.M.Salvetti" <salve@debian.org> 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 <nevin@jhu.edu> 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.




  parent reply	other threads:[~2002-07-26 16:43 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-19 14:02 nnimap, expiry-target, nnmail-fancy-expiry-targets Davide G. M. Salvetti
2002-07-19 15:24 ` Nevin Kapur
2002-07-20  8:23   ` nnimap-request-expire-articles bug? (Was Re: nnimap, expiry-target, nnmail-fancy-expiry-targets) Davide G. M. Salvetti
2002-07-20 23:34     ` [PATCH] nnmail-fancy-expiry-target Nevin Kapur
2002-07-21  8:54       ` Kai Großjohann
2002-07-21 14:12         ` Nevin Kapur
2002-07-21 15:56           ` Kai Großjohann
2002-07-26 14:30       ` Davide G.M.Salvetti
2002-07-26 15:43         ` Nevin Kapur
2002-07-26 16:43         ` Simon Josefsson [this message]
2002-07-28 16:17           ` Nevin Kapur
2002-07-29 11:46             ` Simon Josefsson
2002-07-29 13:10               ` Nevin Kapur
2002-07-29 11:47     ` nnimap-request-expire-articles bug? (Was Re: nnimap, expiry-target, nnmail-fancy-expiry-targets) Simon Josefsson
2002-07-29 11:58       ` Simon Josefsson
2002-07-19 15:38 ` nnimap, expiry-target, nnmail-fancy-expiry-targets Nevin Kapur

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ilu7kji30el.fsf@latte.josefsson.org \
    --to=jas@extundo.com \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).