help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GNUS-AGENT-EXPIRE Does Nothing


From: Volkan YAZICI
Subject: Re: GNUS-AGENT-EXPIRE Does Nothing
Date: Mon, 21 Jul 2008 10:40:46 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

On Sat, 19 Jul 2008, Volkan YAZICI <address@hidden> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]