From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/2376 Path: news.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.user Subject: Re: automatically moving deleted mail to deleted folder Date: Sun, 27 Apr 2003 17:39:50 +0200 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 1138668828 14911 80.91.229.2 (31 Jan 2006 00:53:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 00:53:48 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:30:36 2006 Original-Path: quimby.gnus.org!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-NNTP-Posting-Host: fnatte.nada.kth.se Original-X-Trace: quimby.gnus.org 1051458405 30947 130.237.226.103 (27 Apr 2003 15:46:45 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 27 Apr 2003 15:46:45 GMT User-Agent: Gnus/5.09002 (Oort Gnus v0.20) Emacs/20.7 (gnu/linux) Cancel-Lock: sha1:vQEY4wJcC0ZCoLsfV11nD4IPIKU= Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:2516 Original-Lines: 40 X-Gnus-Article-Number: 2516 Tue Jan 17 17:30:36 2006 Xref: news.gmane.org gmane.emacs.gnus.user:2376 Archived-At: Emin Martinian writes: > 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... The feature was added during Oort, so please try the latest ognus release. It is in feature freeze, so should be stable.