From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/45867 Path: main.gmane.org!not-for-mail From: Nevin Kapur Newsgroups: gmane.emacs.gnus.general Subject: Re: [PATCH] nnmail-fancy-expiry-target Date: Sun, 28 Jul 2002 12:17:16 -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 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1027873129 15859 127.0.0.1 (28 Jul 2002 16:18:49 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 28 Jul 2002 16:18:49 +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 17Yqkp-00047g-00 for ; Sun, 28 Jul 2002 18:18:48 +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 17Yqji-0002O5-00; Sun, 28 Jul 2002 11:17:38 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sun, 28 Jul 2002 11:18:05 -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 LAA02437 for ; Sun, 28 Jul 2002 11:17:50 -0500 (CDT) Original-Received: (qmail 14594 invoked by alias); 28 Jul 2002 16:17:19 -0000 Original-Received: (qmail 14589 invoked from network); 28 Jul 2002 16:17:19 -0000 Original-Received: from main.gmane.org (80.91.224.249) by gnus.org with SMTP; 28 Jul 2002 16:17:19 -0000 Original-Received: from list by main.gmane.org with local (Exim 3.33 #1 (Debian)) id 17Yqiw-000455-00 for ; Sun, 28 Jul 2002 18:16:50 +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 17Yqiw-00044x-00 for ; Sun, 28 Jul 2002 18:16:50 +0200 Original-Path: not-for-mail Original-Newsgroups: gmane.emacs.ding Original-Lines: 63 Original-NNTP-Posting-Host: fermat.mts.jhu.edu Original-X-Trace: main.gmane.org 1027873010 15554 128.220.17.18 (28 Jul 2002 16:16:50 GMT) Original-X-Complaints-To: usenet@main.gmane.org Original-NNTP-Posting-Date: Sun, 28 Jul 2002 16:16:50 +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:uQOHhgvoYpjeOR10aZMOoXXC2WA= Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:45867 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:45867 Simon Josefsson writes: > "Davide G.M.Salvetti" writes: [...] >> 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' 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)=0D\n") imap-send-command-1("12 STATUS \"mail/Mailbox\" (UIDVALIDITY)") imap-send-command(("STATUS \"" "mail/Mailbox" "\" " "(UIDVALIDITY)") nil) imap-send-command-wait(("STATUS \"" "mail/Mailbox" "\" " "(UIDVALIDITY)")) imap-mailbox-status("mail/Mailbox" UIDVALIDITY) nnimap-expiry-target(nil "mail/Mailbox" "jesse") nnimap-request-expire-articles((134 135 136 137 138 139 140 141 142 143 1= 44 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 = 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181= 182 183 184 ...) "mail/Mailbox" "jesse" nil) gnus-request-expire-articles((134 135 136 137 138 139 140 141 142 143 144= 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 16= 3 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 1= 82 183 184 ...) "nnimap+jesse:mail/Mailbox") gnus-summary-expire-articles() run-hooks(gnus-summary-expire-articles) apply(run-hooks gnus-summary-expire-articles) gnus-run-hooks(gnus-summary-prepare-exit-hook) #() call-interactively(gnus-summary-exit) -Nevin