From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/45875 Path: main.gmane.org!not-for-mail From: Nevin Kapur Newsgroups: gmane.emacs.gnus.general Subject: Re: [PATCH] nnmail-fancy-expiry-target Date: Mon, 29 Jul 2002 09:10:22 -0400 Organization: Mathematical Sciences, The Johns Hopkins University 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 1027948270 9388 127.0.0.1 (29 Jul 2002 13:11:10 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 29 Jul 2002 13:11:10 +0000 (UTC) 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 17ZAIn-0002RI-00 for ; Mon, 29 Jul 2002 15:11:09 +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 17ZAIR-0005vW-00; Mon, 29 Jul 2002 08:10:47 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 29 Jul 2002 08:11:14 -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 IAA03811 for ; Mon, 29 Jul 2002 08:11:00 -0500 (CDT) Original-Received: (qmail 18570 invoked by alias); 29 Jul 2002 13:10:28 -0000 Original-Received: (qmail 18565 invoked from network); 29 Jul 2002 13:10:28 -0000 Original-Received: from main.gmane.org (80.91.224.249) by gnus.org with SMTP; 29 Jul 2002 13:10:28 -0000 Original-Received: from list by main.gmane.org with local (Exim 3.33 #1 (Debian)) id 17ZAHd-0002OU-00 for ; Mon, 29 Jul 2002 15:09:57 +0200 Original-To: ding@gnus.org X-Injected-Via-Gmane: http://gmane.org/ Original-Received: from news by main.gmane.org with local (Exim 3.33 #1 (Debian)) id 17ZAHc-0002OC-00 for ; Mon, 29 Jul 2002 15:09:56 +0200 Original-Path: not-for-mail Original-Newsgroups: gmane.emacs.ding Original-Lines: 35 Original-NNTP-Posting-Host: fermat.mts.jhu.edu Original-X-Trace: main.gmane.org 1027948196 6567 128.220.17.18 (29 Jul 2002 13:09:56 GMT) Original-X-Complaints-To: usenet@main.gmane.org Original-NNTP-Posting-Date: Mon, 29 Jul 2002 13:09:56 +0000 (UTC) X-Face: #i!d%y+1tilG}1ua9z&9waMLqE>H+;pUwWFetZe]4uWiv;VE:GHLnT1\Gj]>l^(]R#}sD@E"(@?vMv,yb@`?32;i~D$6x6m*%!3gPyp-rb$}.%QpxZ!3Y+jESN5[s7SL_68Sc`Aek)A$M|h++b/2VjR.k+Tw4X+0a%:K-kcUeMZ(rs?}v\eG({5J&IPS User-Agent: Gnus/5.090007 (Oort Gnus v0.07) XEmacs/21.4 (Honest Recruiter, i686-pc-linux) Mail-Copies-To: never Cancel-Lock: sha1:RUz7C2OOVjpAHOrIMyV1bxIqYLk= Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:45875 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:45875 Simon Josefsson writes: > Nevin Kapur 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