From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/2355 Path: news.gmane.org!not-for-mail From: Emin Martinian Newsgroups: gmane.emacs.gnus.user Subject: Re: automatically moving deleted mail to deleted folder Date: 24 Apr 2003 20:05:21 -0400 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138668816 14844 80.91.229.2 (31 Jan 2006 00:53:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 00:53:36 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:30:34 2006 Original-Path: quimby.gnus.org!newsfeed1.e.nsc.no!nsc.no!nextra.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed!bloom-beacon.mit.edu!senator-bedfellow.mit.edu!dreaderd!not-for-mail Original-Sender: emin@a83.dsp.mit.edu Original-Newsgroups: gnu.emacs.gnus User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.2 Original-NNTP-Posting-Host: TEMPO.MIT.EDU Original-X-Trace: 1051228864 senator-bedfellow.mit.edu 3963 18.62.0.25 Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:2495 Original-Lines: 39 X-Gnus-Article-Number: 2495 Tue Jan 17 17:30:34 2006 Xref: news.gmane.org gmane.emacs.gnus.user:2355 Archived-At: Frank Cusack writes: > On 24 Apr 2003 15:06:44 -0400 Emin Martinian wrote: > > I started using GNUS recently and one feature I would like is to have > > my deleted mail stored in a deleted folder. > > I had set up the expiry stuff to make this happen but it > > doesn't seem to work with IMAP folders so I wrote the code below. > > Really? Works fine for me with the following (using Oort Gnus): > > (setq nnmail-expiry-wait-function > (lambda (group) > (cond ((string= group "user.frank.Trash") > 31) > (t > 'immediate)))) > (setq nnmail-expiry-target > (lambda (group) > (cond ((string-match "^user\\.frank\\.auto\\." group) > 'delete) > (t > "user.frank.Trash")))) > I tried inserting your code into my .gnus file (after deleting my own code from the .gnus file) and it didn't work. Nothing was inserted into the trash group; the expired messages just disappeared. I think what is happening is that gnus-group-nnimap-expunge is getting called and deleting all expired messages. Note I don't ever call gnus-group-nnimap-expunge, but I'm guessing it is built into GNUS. I'm using GNUS version 5.8.8 (which seems like the latest stable version available from http://www.gnus.org/dist/gnus.tar.gz). Should I be using ognus-0.18.tar.gz? Is it stable? Packages with version numbers much less than 1.0 usually aren't particularly stable... Thanks, -Emin