From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/45872 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: [PATCH] nnmail-fancy-expiry-target Date: Mon, 29 Jul 2002 13:46:03 +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 1027943187 28826 127.0.0.1 (29 Jul 2002 11:46:27 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 29 Jul 2002 11:46:27 +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 17Z8yn-0007Up-00 for ; Mon, 29 Jul 2002 13:46:26 +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 17Z8yj-0005HZ-00; Mon, 29 Jul 2002 06:46:21 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 29 Jul 2002 06:46:48 -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 GAA03687 for ; Mon, 29 Jul 2002 06:46:36 -0500 (CDT) Original-Received: (qmail 9546 invoked by alias); 29 Jul 2002 11:46:05 -0000 Original-Received: (qmail 9541 invoked from network); 29 Jul 2002 11:46:04 -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; 29 Jul 2002 11:46:04 -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 g6TBk3kd012040 for ; Mon, 29 Jul 2002 13:46:03 +0200 Original-To: ding@gnus.org Mail-Copies-To: nobody X-Hashcash: 020729:ding@gnus.org:c24261fe83190dad In-Reply-To: (Nevin Kapur's message of "Sun, 28 Jul 2002 12:17:16 -0400") Original-Lines: 26 User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.3.50 (i686-pc-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:45872 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:45872 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: Index: nnimap.el =================================================================== RCS file: /usr/local/cvsroot/gnus/lisp/nnimap.el,v retrieving revision 6.37 diff -u -p -u -w -r6.37 nnimap.el --- 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'