From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/9247 Path: main.gmane.org!not-for-mail From: Colin Rafferty Newsgroups: gmane.emacs.gnus.general Subject: Re: expiration broken??? Date: 18 Dec 1996 18:06:39 -0500 Message-ID: References: Reply-To: Colin Rafferty NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035149299 17291 80.91.224.250 (20 Oct 2002 21:28:19 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 21:28:19 +0000 (UTC) Return-Path: Original-Received: from ifi.uio.no (0@ifi.uio.no [129.240.64.2]) by deanna.miranova.com (8.8.4/8.8.4) with SMTP id PAA04178 for ; Wed, 18 Dec 1996 15:25:07 -0800 Original-Received: from mlfire.ml.com (mlfire.ml.com [192.246.100.1]) by ifi.uio.no with ESMTP (8.6.11/ifi2.4) id for ; Thu, 19 Dec 1996 00:07:14 +0100 Original-Received: from commpost.ml.com ([146.125.4.24]) by mlfire.ml.com (8.7.5/8.7.3/MLgw-2.07) with SMTP id SAA28089 for ; Wed, 18 Dec 1996 18:10:09 -0500 (EST) Original-Received: from spssunp.spspme.ml.com (spssunp.spspme.ml.com [192.168.111.13]) by commpost.ml.com (8.6.12/8.6.12) with ESMTP id SAA26601; Wed, 18 Dec 1996 18:08:27 -0500 Original-Received: by spssunp.spspme.ml.com (SMI-8.6/SMI-4.1) id SAA08869; Wed, 18 Dec 1996 18:06:40 -0500 Original-To: (ding) GNUS Mailing List X-Face: ByE+UMAp1klWR3?\RNGx(A-~Ri!YT%C6M!sxoJL+.;9`Q/|+dj7[KR>gGMyV.2qZeot0NI`4\MA^_Qg`F9=+Ox&zaE?Y9dV%F~Xzf';Zyk2Aobs.uu^Ey0_C6^~q';G#$HkA!ZAHXPpG-"*|Dd*Z4U$4y{{aI0c%75}i~Of(jxYtI[uIpYF<*Zoe|\*/ufb X-Y-Zippy: Civilization is fun! Anyway, it keeps me busy!! In-Reply-To: Andreas Kaempf's message of 18 Dec 1996 09:28:30 -0500 Original-Lines: 73 X-Mailer: Red Gnus v0.60/XEmacs 19.14 Xref: main.gmane.org gmane.emacs.gnus.general:9247 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:9247 Andreas Kaempf writes: > i have been trying for quit a while to get the expiration process > working on my mail articles without avail and am wondering is it me or > is something broken... > what i want to do is expire articles that come in immediately and not > have them written to disk... or if that is not possibel have them > expire at some time... They will always be written to disk, since you have to read them before they get expired. > i have read the manual and have the following in my .gnus but it does > expire the articles in the summary buffer by putting an "E" next to it > but it does not get rid of them from the disk... See below for the correct `nnmail-expiry-wait-function' (which is the real problem). I will > (setq nnmail-delete-incoming t) The deletes the Incomingxxm0005x files, not the mail articles. You probably want to leave this `nil' and delete the files in `cron'. > ;; this does not work or even expire articles in the summary buffer > (setq gnus-total-expirable-newsgroups t) > (setq nnmail-split-methods > '(("xemacs" "^\\(To\\|Cc\\):.*xemacs*") > [...] This is correct (as you know). > ;; then i tried this and it does not work > (setq gnus-total-expirable-newsgroups "TM\\|Misc\\|andreas") This should be correct. Note that it will not mark articles with `E' since it expires everything (except `!' and `*'). > ;; this works in summary buffer by making everything expired > (setq gnus-auto-expirable-newsgroups "xemacs\\|ntemacs\\|fvwm\\|tvro\\|TM\\|ding_gnus\\|ding_bug\\|andreas\\|Misc") If you really want total (which most people do), don't bother with auto. This will mark everything `E', and that will cause adaptive scoring to lose big. > ;; this does not seem to work as articles are still being out in mail > ;;directories > (setq nnmail-expiry-wait-function > (lambda (group) > (cond ((string= group "TM\\|Misc\\|andreas") > 'immediate) > (t > 6)))) Don't use `string=' with a regexp; use `string-match'. Try this: (setq nnmail-expiry-wait-function (lambda (newsgroup) (cond ((string-match "TM\\|Misc\\|andreas" newsgroup) 'immediate) (t 6)))) > i also ran "C-c M-C-x" as suggested but i still leaves articles in dir Because of `nnmail-expiry-wait-function'. Everything is waiting six days. > any help would be appreciated... No problem. Let me know if this all works. -- Colin