🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.vm.bug
Article #718

Re: delete after burst to temp folder -- bug?

#718
From: Kevin Rodgers
Date: Fri, 20 Feb 2004 00:30
42 lines
2740 bytes
Todd Wilson wrote:
 > By default, the key "*" is mapped to vm-burst-digest, and the variable
 > vm-delete-after-bursting determines whether the original digest is
 > marked for deletion after bursting.  However, I prefer to burst
 > digests into a separate folder, so I have the following in my .vm:
 >
 >     (define-key vm-mode-map "*" 'vm-burst-digest-to-temp-folder)
 >
 > This has the advantage that quitting the temp folder is tantamount to
 > deleting all of the bursted messages at one time.  However, the
 > variable vm-delete-after-bursting no longer applies to the original
 > digest, whereas it seems that it should.

I can't speak for Kyle, but I suspect that this behavior is intentional
because the possibility of losing the digest's messages is much greater
than if they'd been burst to a real folder.  But if
vm-delete-after-bursting is set, perhaps vm-burst-digest-to-temp-folder
ought to at least ask, eh?  That's what this patch does, but I don't
know if it will work when bursting multiple digests at once, or when
bursting a digest from a virtual folder.

*** vm-7.18/vm-digest.el.orig	Sat May  3 15:31:52 2003
--- vm-7.18/vm-digest.el	Thu Feb 19 17:29:13 2004
***************
*** 708,713 ****
--- 708,720 ----
   		   (vm-rfc1153-burst-message m))
   		  (t (error "Unknown digest type: %s" digest-type)))
   	    (message "Bursting %s digest... done" digest-type)
+ 	    (and vm-delete-after-bursting
+ 		 (yes-or-no-p (format "Delete message %s? " (vm-number-of m)))
+ 		 (save-excursion
+ 		   (set-buffer start-buffer)
+ 		   ;; don't move message pointer when deleting the message
+ 		   (let ((vm-move-after-deleting nil))
+ 		     (vm-delete-message 1))))
   	    (setq mlist (cdr mlist)))
   	  (set-buffer-modified-p nil)
   	  (vm-save-buffer-excursion

-- 
Kevin Rodgers
Technical Details
Message-ID: <40355528.9060000@yahoo.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!170.207.51.80!not-for-mail
References: <63256874.0402131404.4b684a98@posting.google.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f6829,5f1b6e17338f5e77
X-Google-Attributes: gidf6829,public
X-Google-ArrivalTime: 2004-02-19 16:30:25 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!170.207.51.80!not-for-mail
From: Kevin Rodgers <ihs_4664@yahoo.com>
Newsgroups: gnu.emacs.vm.bug
Subject: Re: delete after burst to temp folder -- bug?
Date: Thu, 19 Feb 2004 17:30:32 -0700
Lines: 43
Message-ID: <40355528.9060000@yahoo.com>
References: <63256874.0402131404.4b684a98@posting.google.com>
NNTP-Posting-Host: 170.207.51.80
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de 1077237024 48575035 I 170.207.51.80 ([82742])
User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2
X-Accept-Language: en-us