Gnus development mailing list
 help / color / mirror / Atom feed
From: Nevin Kapur <nevin@jhu.edu>
Subject: Re: [PATCH] nnmail-fancy-expiry-target
Date: Mon, 29 Jul 2002 09:10:22 -0400	[thread overview]
Message-ID: <m3u1miu1c1.fsf@fermat.mts.jhu.edu> (raw)
In-Reply-To: <iluy9bun4ec.fsf@latte.josefsson.org>

Simon Josefsson <jas@extundo.com> writes:

> Nevin Kapur <nevin@jhu.edu> writes:
>
>> Applying this patch gives the following error each time I exit an
>> nnimap group which does not use delete as its expiry-target:
>>
>> Signaling: (error "Buffer  *temp* has no process")
>>   process-send-string(nil "12 STATUS \"mail/Mailbox\" (UIDVALIDITY)\n")
>
> Sorry, try this:

OK, this fixed the error but doesn't solve the original problem.  I
tried to expire to an non-existent group and it didn't create it on
the fly.

I don't understand why you are checking for the existence of the group
from which the expiry is called.  Doesn't that exist by definition?

Shouldn't one be checking for the existence of the group returned by
nnmail-expiry-target?

> --- nnimap.el	2002/07/10 16:28:39	6.37
> +++ nnimap.el	2002/07/29 12:03:00
> @@ -1296,6 +1296,8 @@ function is generally only called when G
>  (defun nnimap-expiry-target (arts group server)
>    (unless (eq nnmail-expiry-target 'delete)
>      (with-temp-buffer
> +      (or (imap-mailbox-status group 'UIDVALIDITY nnimap-server-buffer)
> +	  (imap-mailbox-create group nnimap-server-buffer))
>        (dolist (art (gnus-uncompress-sequence arts))
>  	(nnimap-request-article art group server  (current-buffer))
>  	;; hints for optimization in `nnimap-request-accept-article'

-Nevin





  reply	other threads:[~2002-07-29 13:10 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
2002-07-28 16:17           ` Nevin Kapur
2002-07-29 11:46             ` Simon Josefsson
2002-07-29 13:10               ` Nevin Kapur [this message]
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=m3u1miu1c1.fsf@fermat.mts.jhu.edu \
    --to=nevin@jhu.edu \
    /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).