From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/62047 Path: news.gmane.org!not-for-mail From: Danny Siu Newsgroups: gmane.emacs.gnus.general Subject: Re: nnimap: nnimap-request-move-article does not delete the original Date: Mon, 20 Feb 2006 18:28:53 -0800 Organization: Adobe Systems Incorporated Message-ID: References: <87y81kiaia.fsf@artemis.voegele.dyndns.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1140489183 32480 80.91.229.2 (21 Feb 2006 02:33:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 21 Feb 2006 02:33:03 +0000 (UTC) Original-X-From: ding-owner+m10575@lists.math.uh.edu Tue Feb 21 03:33:01 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FBNKj-0001AV-Mn for ding-account@gmane.org; Tue, 21 Feb 2006 03:32:58 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1FBNKM-0000PH-00; Mon, 20 Feb 2006 20:32:34 -0600 Original-Received: from nas02.math.uh.edu ([129.7.128.40]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1FBNH5-0000P9-00 for ding@lists.math.uh.edu; Mon, 20 Feb 2006 20:29:11 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas02.math.uh.edu with esmtp (Exim 4.52) id 1FBNGz-00004u-DP for ding@lists.math.uh.edu; Mon, 20 Feb 2006 20:29:11 -0600 Original-Received: from exprod6og8.obsmtp.com ([64.18.1.128]) by quimby.gnus.org with smtp (Exim 3.35 #1 (Debian)) id 1FBNGx-0002dR-00 for ; Tue, 21 Feb 2006 03:29:04 +0100 Original-Received: from source ([192.150.20.142]) by exprod6ob8.obsmtp.com ([64.18.5.12]) with SMTP; Mon, 20 Feb 2006 18:28:57 PST Original-Received: from inner-relay-3.eur.adobe.com (inner-relay-3b [10.128.4.236]) by outbound-smtp-2.corp.adobe.com (8.12.10/8.12.10) with ESMTP id k1L2T246022401 for ; Mon, 20 Feb 2006 18:29:02 -0800 (PST) Original-Received: from calsj-dev (calsj-dev.corp.adobe.com [153.32.1.193]) by inner-relay-3.eur.adobe.com (8.12.10/8.12.9) with ESMTP id k1L2Ssrs015466 for ; Mon, 20 Feb 2006 18:28:55 -0800 (PST) Original-Received: from calsj-dev (localhost [127.0.0.1]) by mailsj-v1.corp.adobe.com (iPlanet Messaging Server 5.2 HotFix 2.02 (built Oct 21 2004)) with ESMTP id <0IV0002JBMW5Q2@mailsj-v1.corp.adobe.com> for ding@gnus.org; Mon, 20 Feb 2006 18:28:54 -0800 (PST) Original-Received: from DSIU-XP.corp.adobe.com ([10.7.241.32]) by mailsj-v1.corp.adobe.com (iPlanet Messaging Server 5.2 HotFix 2.02 (built Oct 21 2004)) with ESMTP id <0IV0005L2MW4M0@mailsj-v1.corp.adobe.com> for ding@gnus.org; Mon, 20 Feb 2006 18:28:53 -0800 (PST) X-Face: fHBvLrQQW(GRz#RNTAN(,')p8NGv}{6dMh\:?%*D\+8hgkiA_dub1@\,Y"r5'a8C(8e~cGG(WFTU\OlAqI[B?V7m'ZGkquvZ/d k~E"A"@WK;0mLF&\%W1kIC]O"z#/>YNUefE1%5/NUX;ml]@$nW;05Z9uZ/CqTz]A)+`1ROuF~||pG= k>Zi@hE- In-reply-to: Original-To: ding@gnus.org Mail-followup-to: ding@gnus.org X-Mailer: No Gnus v0.4 User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (windows-nt) X-Location: San Jose X-Emacs: 22.0.50.1 X-Spam-Score: -2.6 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:62047 Archived-At: Wolfram, Thanks for the patch. I have installed it and finally moved articles in nnimap are marked correctly for expiration. Can someone with cvs access submit this patch? Wolfram Fenske writes: Wolfram> Andreas V=F6gele gmx.net> writes: >> When moving a message from one IMAP folder to another folder the >> message is copied but the original message isn't deleted. Wolfram> I'm having the same problem, usign Gnus v5.10.7. =20 >> `nnimap-request-move-article' from CVS first evaluates `accept-form', >> which is set to `gnus-request-accept-article', to copy the article. >> Then the original messages's \Deleted flag is set. >>=20 >> But `gnus-request-accept-article' selects the destination IMAP folder. >> Since the source folder isn't selected again, the \Deleted flag is set >> while the wrong IMAP folder is selected. Wolfram> Thanks to your hints, I was able to come up with a patch that Wolfram> completely fixes the problem, at least for me. One line of code Wolfram> before the (imap-message-flags-add ...) in Wolfram> nnimap-request-move-article: Wolfram> *** /usr/home/wfenske/share/xemacs/site-lisp/gnus/nnimap.el Fri Wolfram> Feb 17 Wolfram> 00:40:24 2006 Wolfram> --- /usr/local/lib/xemacs/xemacs-packages/lisp/gnus/nnimap.el Fri Wolfram> Feb 17 Wolfram> 05:10:57 2006 *************** Wolfram> *** 1492,1497 **** Wolfram> --- 1492,1498 ---- Wolfram> (setq result (eval accept-form)) (kill-buffer buf) Wolfram> result) Wolfram> + (nnimap-possibly-change-group group server) Wolfram> (imap-message-flags-add Wolfram> (imap-range-to-message-set (list article)) Wolfram> "\\Deleted" 'silent nnimap-server-buffer)) Wolfram> Cheers Wolfram -- Danny Siu