Gnus development mailing list
 help / color / mirror / Atom feed
From: Simon Josefsson <jas@extundo.com>
Subject: Re: [PATCH] Make gnus-summary-delete-article respect group parameters
Date: Fri, 26 Jul 2002 14:24:21 +0200	[thread overview]
Message-ID: <iluk7nismmi.fsf@latte.josefsson.org> (raw)
In-Reply-To: <microsoft-free.x465zmts1h.fsf@eicq.dnsalias.org> (Steve Youngs's message of "Thu, 11 Jul 2002 21:36:42 +1000")

Steve Youngs <youngs@xemacs.org> writes:

> |--==> "SJ" == Simon Josefsson <jas@extundo.com> 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 <DEL>' 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.





  reply	other threads:[~2002-07-26 12:24 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-09 12:32 Nevin Kapur
2002-07-09 12:56 ` Simon Josefsson
2002-07-09 13:09   ` Nevin Kapur
2002-07-09 13:18     ` Simon Josefsson
2002-07-11 11:36       ` Steve Youngs
2002-07-26 12:24         ` Simon Josefsson [this message]
2002-07-26 15:10           ` Benjamin Rutt
2002-07-26 16:34             ` Simon Josefsson
2002-08-02 10:51           ` Steve Youngs

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=iluk7nismmi.fsf@latte.josefsson.org \
    --to=jas@extundo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).