Gnus development mailing list
 help / color / mirror / Atom feed
* expiration broken???
@ 1996-12-18 14:28 Andreas Kaempf
  1996-12-18 23:06 ` Colin Rafferty
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Kaempf @ 1996-12-18 14:28 UTC (permalink / raw)



hi all...

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...

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...

.gnus info:

;; GNUS definitions

(setq nnmail-delete-incoming t)
(setq nnmail-split-methods
	     '(("xemacs"  "^\\(To\\|Cc\\):.*xemacs*")
	       ("ntemacs"      "^\\(From\\|To\\|^CC\\):.*ntemacs-users")
	       ("fvwm"         "^\\(To\\|Cc\\):.*fvwm")
	       ("tvro"         "^\\(To\\|Cc\\):.*TVROSAT@")
	       ("TM"           "^\\(To\\|Cc\\):.*tm-en")
	       ("ding_gnus"    "^\\(To\\|Cc\\):.*ding@")
	       ("ding_bug"     "^\\(From\\|To\\|Cc\\):.*gnus-bug@")
	       ("susan"        "^From:.*sclark")
	       ("denise"        "^From:.*denise")		
	       ("andreas"      "^From:.*andreas")
	       ("lisa"         "^From:.*lkaempf")
	       ("Misc"         "")))

;; this does not work or even expire articles in the summary buffer
(setq gnus-total-expirable-newsgroups t)

;; then i tried this and it does not work
(setq gnus-total-expirable-newsgroups "TM\\|Misc\\|andreas")

;; 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")

;; 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))))

i also ran "C-c M-C-x" as suggested but i still leaves articles in dir
 
i am sure it is something i am doing....

any help would be appreciated...

andreas
-- 
   Steller Computer Consultants	 	Andreas Kaempf
	P.O. BOX 3873			 603-595-7461
     Nashua, NH 03062  USA	      andreas@sccon.com
.....................................................
Fragen Sie nicht, was Ihr Computer fuer Sie tun kann.
Fragen Sie, was Sie fuer Ihren Computer tun koennen.




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: expiration broken???
  1996-12-18 14:28 expiration broken??? Andreas Kaempf
@ 1996-12-18 23:06 ` Colin Rafferty
  0 siblings, 0 replies; 2+ messages in thread
From: Colin Rafferty @ 1996-12-18 23:06 UTC (permalink / raw)


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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1996-12-18 23:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-12-18 14:28 expiration broken??? Andreas Kaempf
1996-12-18 23:06 ` Colin Rafferty

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 NNTP newsgroup(s).