unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Volkan YAZICI <yazicivo@ttmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: GNUS-AGENT-EXPIRE Does Nothing
Date: Mon, 21 Jul 2008 10:40:46 +0300	[thread overview]
Message-ID: <87fxq31y81.fsf@alamut.mobiliz.com.tr> (raw)
In-Reply-To: <87tzeldiih.fsf@alamut.mobiliz.com.tr> (Volkan YAZICI's message of "Sat, 19 Jul 2008 18:02:30 +0300")

On Sat, 19 Jul 2008, Volkan YAZICI <yazicivo@ttmail.com> 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.




      reply	other threads:[~2008-07-21  7:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-19 15:02 GNUS-AGENT-EXPIRE Does Nothing Volkan YAZICI
2008-07-21  7:40 ` Volkan YAZICI [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fxq31y81.fsf@alamut.mobiliz.com.tr \
    --to=yazicivo@ttmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).