[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Expiry problems...
John S Cooper <John.Cooper@citrix.com> writes:
> Why might the demon not expunge expired articles? My demon function
> just calls gnus-group-expire-all-groups; if I invoke this command
> interactively, then it does seem to expunge articles.
>
> Now, my demon expiry function is set up to run only when Emacs has been idle
> for 60 minutes, yet I have another demon function which scans new every 5
> minutes.
>
> (gnus-demon-add-handler 'jsc-expire-groups nil 60)
> (gnus-demon-add-handler 'gnus-demon-scan-news 5 5)
>
> Could this latter every-5-minute function make Emacs not think it's
> been idle and hence prevent the former demon function from running?
> (.. or is the notion of "idleness" based on lack of keyboard/mouse
> input?)
Another idea: IMAP servers normally time out connections after 30
minutes of inactivity. `gnus-group-expire-all-groups' doesn't re-open
the connection, so expiring wouldn't take place.
Does things start to work if you apply this patch to Gnus?
Index: gnus-group.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/gnus-group.el,v
retrieving revision 5.35
diff -w -u -u -w -r5.35 gnus-group.el
--- gnus-group.el 1999/12/09 15:23:49 5.35
+++ gnus-group.el 1999/12/28 00:44:40
@@ -2631,6 +2631,7 @@
(assq 'expire (gnus-info-marks info))))
(expiry-wait (gnus-group-find-parameter group 'expiry-wait)))
(when expirable
+ (gnus-check-group group)
(setcdr
expirable
(gnus-compress-sequence