From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/46563 Path: main.gmane.org!not-for-mail From: Nevin Kapur Newsgroups: gmane.emacs.gnus.general Subject: [PATCH] Re: nnimap: error/warning while trying to quit group Date: Mon, 16 Sep 2002 11:39:55 -0400 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1032203637 24246 127.0.0.1 (16 Sep 2002 19:13:57 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 16 Sep 2002 19:13:57 +0000 (UTC) Return-path: Original-Received: from karazm.math.uh.edu ([129.7.128.1]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17r1Ji-0006Id-00 for ; Mon, 16 Sep 2002 21:13:55 +0200 Original-Received: from sina.hpc.uh.edu (lists@sina.hpc.uh.edu [129.7.128.10]) by karazm.math.uh.edu (8.9.3/8.9.3) with ESMTP id KAA00852; Mon, 16 Sep 2002 10:40:15 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 16 Sep 2002 10:40:53 -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 KAA22888 for ; Mon, 16 Sep 2002 10:40:39 -0500 (CDT) Original-Received: (qmail 14423 invoked by alias); 16 Sep 2002 15:39:57 -0000 Original-Received: (qmail 14418 invoked from network); 16 Sep 2002 15:39:56 -0000 Original-Received: from fermat.mts.jhu.edu (128.220.17.18) by gnus.org with SMTP; 16 Sep 2002 15:39:56 -0000 Original-Received: (from nevin@localhost) by fermat.mts.jhu.edu (8.11.6/8.11.6) id g8GFdte13949; Mon, 16 Sep 2002 11:39:55 -0400 X-Authentication-Warning: fermat.mts.jhu.edu: nevin set sender to nevin@jhu.edu using -f 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 In-reply-to: Original-To: ding@gnus.org Mail-Followup-To: ding@gnus.org Original-Lines: 38 User-Agent: Gnus/5.090008 (Oort Gnus v0.08) XEmacs/21.4 (Informed Management, i686-pc-linux) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:46563 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:46563 Nevin Kapur writes: > Since updating this morning (last update was last Monday) I get the > following error when quitting a group: > > (5) (error/warning) Error in process filter: (error Internal error, > tag 598 status BAD code nil text Bogus criteria list in UID > SEARCH) The following patch fixes this for me. I'm not sure if this is the "right" thing to do. Would someone review it and apply it if appropriate? 2002-09-16 Nevin Kapur * nnimap.el (nnimap-request-expire-articles): Don't call nnimap-expiry-target unless needed. Index: nnimap.el =================================================================== RCS file: /usr/local/cvsroot/gnus/lisp/nnimap.el,v retrieving revision 6.39 diff -u -r6.39 nnimap.el --- nnimap.el 2002/09/11 08:13:03 6.39 +++ nnimap.el 2002/09/16 16:14:52 @@ -1337,7 +1337,8 @@ (nnimap-date-days-ago days)))) (imap-fetch-data-hook '(nnimap-request-expire-articles-progress))) - (nnimap-expiry-target oldarts group server) + (when oldarts + (nnimap-expiry-target oldarts group server)) (and oldarts (imap-message-flags-add (imap-range-to-message-set -Nevin