From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/66528 Path: news.gmane.org!not-for-mail From: Nils Ackermann Newsgroups: gmane.emacs.gnus.general Subject: Re: drafts and expiry-target problem and solution Date: Tue, 18 Mar 2008 18:27:49 -0600 Message-ID: <87abkv4kxm.fsf@aphrodite.localdomain> References: <87r6eevweh.fsf@pascal.matem.unam.mx> Reply-To: nils-dated-1213237429.39274f@ackermath.info NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1205895933 4672 80.91.229.12 (19 Mar 2008 03:05:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 19 Mar 2008 03:05:33 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M15015@lists.math.uh.edu Wed Mar 19 04:06:01 2008 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1JbocP-0006bx-Bz for ding-account@gmane.org; Wed, 19 Mar 2008 04:05:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1Jbob4-0003Ml-N1; Tue, 18 Mar 2008 22:04:10 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1JboSY-0003K6-Cl for ding@lists.math.uh.edu; Tue, 18 Mar 2008 21:55:22 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1JboSQ-0005gq-0R for ding@lists.math.uh.edu; Tue, 18 Mar 2008 21:55:22 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1JboSS-0003Jx-00 for ; Wed, 19 Mar 2008 03:55:16 +0100 Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1JboSF-00050E-15 for ding@gnus.org; Wed, 19 Mar 2008 02:55:03 +0000 Original-Received: from 201.163.234.156 ([201.163.234.156]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 19 Mar 2008 02:55:03 +0000 Original-Received: from nils-dated-1213237429.39274f by 201.163.234.156 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 19 Mar 2008 02:55:03 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 56 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 201.163.234.156 User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) Cancel-Lock: sha1:1Ih/cr6BZfYRemVAH/m8tl1TH6I= X-Spam-Score: -1.1 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:66528 Archived-At: Katsumi Yamaoka writes: >>>>>> Nils Ackermann wrote: >> I like to archive all incoming and all outgoing email in the same nnml >> archive folder. Therefore I set `total-expire' in the group >> parameters globally (via topics), and I set `nnmail-expiry-target' and >> `gnus-message-archive-group' to the same group, globally. > >> In the drafts group a problem appears: message mode uses the internal >> expiry function `nnmh-request-expire-articles' from nnmh.el to delete >> the message, immediately. If `nnmail-expiry-target' is set to a >> folder, the email is not deleted but moved to this folder instead. > >> Of course, since the values of `nnmail-expiry-target' and >> `gnus-message-archive-group' coincide, gnus tries to save the message >> in this folder twice, but gives an error, I don't know why. I think >> it should succeed without an error, and warn about it (with variable >> to turn the warning off). This is one bug. > > But doesn't your patch to message.el solve it? Although I tried > modifying the `nnml-open-nov' function as follows, before applying > your patch, it is unnecessary, isn't it? You're right, with respect to this bug it would probably be enough to call `message-disassociate-draft' with the full group specification. On second thought it appears to me that `message-disassociate-draft' shouldn't rely on `nnmh-request-expire-articles' to delete the mail from the drafts group. It should just delete it. Is there any deep reason for this choice? [snip] >> The second bug is that setting the group parameter `expiry-target' for >> the drafts group to 'delete doesn't change anything. This clearly >> contradicts the manual, where it is stated that group parameters >> override global settings. (By the way, in my real setup the parameter >> is set via the groups buffer, and not via the variable, but the result >> is the same.) The reason is that `nnmh-request-expire-articles' does >> not honor the group parameter `expiry-target' at all. [snip] >> A quick grep through source (by parameter names) showed that there are >> many places where (general) group parameters aren't honored, even if >> they should be. Potentially this gives rise to a lot of bugs that >> seem unrelated. Probably there are also more places where the full >> group specification is missing in using `gnus-group-find-parameter'. This seems much more serious to me. I am considering helping to rectify this. Please instruct me about signing the papers. Regards, Nils -- Info: http://www.ackermath.info/