Gnus development mailing list
 help / color / mirror / Atom feed
From: David Moore <dmoore@UCSD.EDU>
Subject: Re: time delay on news groups?
Date: 12 Dec 1996 14:00:22 -0800	[thread overview]
Message-ID: <rv7mmnv2x5.fsf@sdnp5.ucsd.edu> (raw)
In-Reply-To: Mark Eichin's message of 12 Dec 1996 15:53:53 -0500

Mark Eichin <eichin@cygnus.com> writes:

> Has anyone come up with a way to configure gnus to not show news until
> iit has been visible for some amount of time?  I'm thinking in terms
> of making the spam-warfare out there more useful... if I delay reading
> a message in an alt group until it's been there for 12 or maybe 36
> hours, there's a fair chance that someone will have "retroactively
> moderated" it if necessary.

	Good idea, it can help with NoCeM propagation problems.  I'm not
sure what you'd want to do in the group buffer, but in the subject
buffer, you could limit the summary to articles older than X days:


(defun gnus-summary-limit-to-age (age &optional younger-p)
  "If YOUNGER-P is nil, limit the summary buffer to articles that are older than (or equal) AGE days.  Otherwise, limit the summary buffer to articles that are younger than AGE days."
  (interactive "nTime in days: ")
  (prog1
      (let ((data gnus-newsgroup-data)
	    (cutoff (nnmail-days-to-time age))
	    articles d date is-younger)
	(while (setq d (pop data))
	  (when (and (vectorp (gnus-data-header d))
		     (setq date (mail-header-date (gnus-data-header d))))
	    (setq is-younger (nnmail-time-less
			      (nnmail-time-since (nnmail-date-to-time date))
			      cutoff))
	    (when (if younger-p is-younger (not is-younger))
	      (push (gnus-data-number d) articles))))
	(gnus-summary-limit (nreverse articles)))
    (gnus-summary-position-point)))


You could bind to something like '/ t' in the summary buffer.  Or it
might work in your gnus-summary-prepare-hook, but I haven't tested that.

-- 
David Moore <dmoore@ucsd.edu>       | Computer Systems Lab      __o
UCSD Dept. Computer Science - 0114  | Work: (619) 534-8604    _ \<,_
La Jolla, CA 92093-0114             | Fax:  (619) 534-1445   (_)/ (_)
<URL:http://oj.egbt.org/dmoore/>    | Solo Furnace Creek 508 -- 1996!


  reply	other threads:[~1996-12-12 22:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-12-12 20:53 Mark Eichin
1996-12-12 22:00 ` David Moore [this message]
1996-12-13  7:37   ` Wesley.Hardaker
1996-12-13  8:33     ` David Moore
1996-12-16 13:04       ` Lars Magne Ingebrigtsen
1996-12-12 22:37 St. Suika Fenderson Roberts

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

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

  git send-email \
    --in-reply-to=rv7mmnv2x5.fsf@sdnp5.ucsd.edu \
    --to=dmoore@ucsd.edu \
    /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 NNTP newsgroup(s).