From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/45811 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: [PATCH] Make gnus-summary-delete-article respect group parameters Date: Fri, 26 Jul 2002 14:24:21 +0200 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 1027686328 13604 127.0.0.1 (26 Jul 2002 12:25:28 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 26 Jul 2002 12:25:28 +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 17Y49v-0003XJ-00 for ; Fri, 26 Jul 2002 14:25:27 +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 17Y49C-0007Xj-00; Fri, 26 Jul 2002 07:24:42 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 26 Jul 2002 07:25:07 -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 HAA27816 for ; Fri, 26 Jul 2002 07:24:53 -0500 (CDT) Original-Received: (qmail 10331 invoked by alias); 26 Jul 2002 12:24:24 -0000 Original-Received: (qmail 10326 invoked from network); 26 Jul 2002 12:24:23 -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; 26 Jul 2002 12:24:23 -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 g6QCOLkd027664 for ; Fri, 26 Jul 2002 14:24:21 +0200 Original-To: Gnus List Mail-Copies-To: nobody X-Hashcash: 020726:ding@gnus.org:960dffda8727c020 In-Reply-To: (Steve Youngs's message of "Thu, 11 Jul 2002 21:36:42 +1000") Original-Lines: 90 User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2 (i386-debian-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:45811 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:45811 Steve Youngs writes: > |--==> "SJ" == Simon Josefsson writes: > > SJ> Yup. I also like B DEL to really delete the article, but I don't > SJ> think it is important enough to modify existing behaviour. Let's wait > SJ> for someone to report it as a bug, and then we can discuss it. :-) > > Well, consider this a bug report. IMO, B DEL should ignore all group > parameters especially expiry settings. The only thing that B DEL > should do is physically delete the article, completely, forever, do > not pass go, do not collect 200 euro, the judges decision is final, no > correspondence will be entered into. Does this patch do what you want? --- gnus-sum.el.~6.216.~ 2002-07-09 15:15:09.000000000 +0200 +++ gnus-sum.el 2002-07-09 21:26:35.000000000 +0200 @@ -8826,9 +8826,7 @@ (error "Couldn't open server")) ;; Compute the list of articles to delete. (let ((articles (sort (copy-sequence (gnus-summary-work-articles n)) '<)) - (nnmail-expiry-target - (or (gnus-group-find-parameter gnus-newsgroup-name 'expiry-target) - nnmail-expiry-target)) + (nnmail-expiry-target 'delete) not-deleted) (if (and gnus-novice-user (not (gnus-yes-or-no-p > Besides, just look at the doc for it... > > ,----[ C-h k B DEL ] > | B DEL runs `gnus-summary-delete-article' > | > | `gnus-summary-delete-article' is an interactive compiled Lisp function > | -- loaded from "gnus-sum" > | (gnus-summary-delete-article &optional N) > | > | Documentation: > | Delete the N next (mail) articles. > | This command actually deletes articles. This is not a marking > | command. The article will disappear forever from your life, never to > | return. > | If N is negative, delete backwards. > | If N is nil and articles have been marked with the process mark, > | delete these instead. > `---- > > Now, I've read that a dozen or so times and I just can't make it mean > "when we say 'delete' we don't actually mean delete, we mean run the > article through the normal expiry functions and if you use > expiry-targets to archive your mail the article will go into the > archive and won't get deleted at all". Not the same issue, but there is another issue with B DEL in nnimap, just FYI: `nnimap-expunge-on-close' Unlike Parmenides, the IMAP designers decided that things that don't exist actually do exist. More specifically, IMAP has the concept of marking articles `Deleted' which doesn't actually delete them, and this (marking them `Deleted', that is) is what nnimap does when you delete a article in Gnus (with `G ' or similar). Since the articles aren't really removed when we mark them with the `Deleted' flag we'll need a way to actually delete them. Feel like running in circles yet? Traditionally, nnimap has removed all articles marked as `Deleted' when closing a mailbox but this is now configurable by this server variable. The possible options are: `always' The default behavior, delete all articles marked as "Deleted" when closing a mailbox. `never' Never actually delete articles. Currently there is no way of showing the articles marked for deletion in nnimap, but other IMAP clients may allow you to do this. If you ever want to run the EXPUNGE command manually, *Note Expunging mailboxes::. `ask' When closing mailboxes, nnimap will ask if you wish to expunge deleted articles or not.