From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Volkan YAZICI Newsgroups: gmane.emacs.help Subject: Re: GNUS-AGENT-EXPIRE Does Nothing Date: Mon, 21 Jul 2008 10:40:46 +0300 Message-ID: <87fxq31y81.fsf@alamut.mobiliz.com.tr> References: <87tzeldiih.fsf@alamut.mobiliz.com.tr> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1216627434 6767 80.91.229.12 (21 Jul 2008 08:03:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Jul 2008 08:03:54 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 21 10:04:42 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KKqNt-0003GR-TI for geh-help-gnu-emacs@m.gmane.org; Mon, 21 Jul 2008 10:04:42 +0200 Original-Received: from localhost ([127.0.0.1]:34631 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KKqN0-0003EE-CC for geh-help-gnu-emacs@m.gmane.org; Mon, 21 Jul 2008 04:03:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KKqMg-0003Dz-SB for help-gnu-emacs@gnu.org; Mon, 21 Jul 2008 04:03:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KKqMf-0003Dn-0H for help-gnu-emacs@gnu.org; Mon, 21 Jul 2008 04:03:26 -0400 Original-Received: from [199.232.76.173] (port=60716 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KKqMe-0003Dk-RR for help-gnu-emacs@gnu.org; Mon, 21 Jul 2008 04:03:24 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:63298) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KKqMe-0003ij-CY for help-gnu-emacs@gnu.org; Mon, 21 Jul 2008 04:03:24 -0400 Original-Received: from [88.255.235.9] (helo=mailserver.ttmail.com) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KKqMb-00070l-Nb for help-gnu-emacs@gnu.org; Mon, 21 Jul 2008 04:03:22 -0400 Original-Received: from SMTP6 ([192.168.19.141]) by mailserver.ttmail.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 21 Jul 2008 10:40:50 +0300 Original-Received: from alamut.mobiliz.com.tr ([213.139.194.86]) by SMTP6 with Microsoft SMTPSVC(6.0.3790.1830); Mon, 21 Jul 2008 10:40:49 +0300 Original-Received: from (unknown [213.139.194.86]) by AVGW-TTMAIL-3.ttmail.com with smtp id 38aa_54e36034_56f8_11dd_aad0_001422175f4f; Mon, 21 Jul 2008 10:40:49 +0300 In-Reply-To: <87tzeldiih.fsf@alamut.mobiliz.com.tr> (Volkan YAZICI's message of "Sat, 19 Jul 2008 18:02:30 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-NAI-Spam-Report: 1 Rules triggered * 0 -- RV3063 -- BODY: Version number X-OriginalArrivalTime: 21 Jul 2008 07:40:49.0722 (UTC) FILETIME=[186D01A0:01C8EB05] X-detected-kernel: by mx20.gnu.org: Windows 2000 SP4, XP SP1+ X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:55766 Archived-At: On Sat, 19 Jul 2008, Volkan YAZICI writes: > Despite below configurations, calling GNUS-AGENT-EXPIRE on an article > from "18 Oct 2007" returns "Expiry recovered 0 NOV entries, deleted 0 > files, and freed 0.000000 B." and obviously no expiration occurs. Any > ideas what I might be missing? > > (defun custom-nnmail-expiry-wait (group) > (cond ((string-match "mail" (gnus-group-topic group)) 90) > (t 30))) > > (setq > gnus-agent-expire-all nil > gnus-agent-expire-days 7 > gnus-agent-expire-unagentized-dirs t > nnmail-expiry-wait 7 > message-expires 7 > nnmail-expiry-wait-function 'custom-nnmail-expiry-wait > gnus-auto-expirable-newsgroups ".*") I tracked down the problem and find out that (file-exists-p (gnus-agent-lib-file "active")) in GNUS-AGENT-EXPIRE-GROUP returns NIL. Where (gnus-agent-lib-file "active") returns "/home/vy/gnus/news/agent/nnml/mailspool/agent.lib/active". I suspect the problem is caused by my non-default gnus directory configuration: (setq gnus-directory "~/gnus/news" nnml-directory "~/gnus/mail" mail-source-directory "~/gnus/mail-source" message-directory "~/gnus/mail") Moreover, $ find ~/gnus -name "active" /home/vy/gnus/mail/active /home/vy/gnus/news/cache/active Does that ring bells for someone? Any ideas how can I fix the problem? Why there doesn't exist such an "active" file? > BTW, among GNUS-AGENT-EXPIRE-DAYS, NNMAIL-EXPIRY-WAIT, MESSAGE-EXPIRES > and NNMAIL-EXPIRY-WAIT-FUNCTION, how gnus decides which one to use? Um... I still need help for those as well. Regards.