Gnus development mailing list
 help / color / mirror / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
To: ding@gnus.org
Subject: Re: nnrss-ignore-article-fields for more than just fields
Date: Fri, 31 Oct 2008 12:39:23 -0500	[thread overview]
Message-ID: <8663n864vo.fsf@lifelogs.com> (raw)
In-Reply-To: <87od115h3r.fsf_-_@jidanni.org>

On Fri, 31 Oct 2008 16:00:40 +0800 jidanni@jidanni.org wrote: 

>> In No Gnus, there's `nnrss-ignore-article-fields' to deal with
>> duplicated articles.

j> Is that something to do with Slashdot? Perhaps its a
j> Slash:Comments: 44 field?

Yes, slash:comments update very often.

j> Anyway, here's the difference between two articles I wish nnrss would
j> consider the same
j> 8c8
j> < Message-ID: <496@TorrentFreak.nnrss>
j> ---
>> Message-ID: <512@TorrentFreak.nnrss>
j> 72,75c72
j> < href="http://torrentfreak.com">Torre
j> < href="http://feedads.googleadservice
j> < src="http://feedads.googleadservices
j> < border="0" ismap="true"></img></a></
j> ---
>> href="http://torrentfreak.com">Torre
j> 94c91
j> < <p><a href="http://feedads.googleads
j> ---
>> 

j> I.e., I need not be informed of a slight rewrite of their article, in
j> _some_ groups only, not all. So what should I set
j> nnrss-ignore-article-fields to?

Check my earlier post (I'm waiting for Reiner to approve its commit to
CVS, but the patch is appended).  This will show you each checked RSS
item as a Lisp structure so you can see which fields are duplicated.
FWIW I disabled "description" and now Reddit works OK.

Index: nnrss.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/nnrss.el,v
retrieving revision 7.59
diff -c -r7.59 nnrss.el
*** nnrss.el    11 Jun 2008 14:19:44 -0000      7.59
--- nnrss.el    31 Oct 2008 17:38:01 -0000
***************
*** 684,691 ****
      (buffer-string)))
  
  ;;; Snarf functions
- 
  (defun nnrss-make-hash-index (item)
    (setq item (gnus-remove-if
              (lambda (field)
                (when (listp field)
--- 684,691 ----
      (buffer-string)))
  
  ;;; Snarf functions
  (defun nnrss-make-hash-index (item)
+   (gnus-message 9 "nnrss: Making hash index of %s" (gnus-prin1-to-string item))
    (setq item (gnus-remove-if
              (lambda (field)
                (when (listp field)




  reply	other threads:[~2008-10-31 17:39 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-16 13:00 Using nnrss very actively Lars Magne Ingebrigtsen
2008-10-16 13:15 ` David Engster
2008-10-16 13:27   ` Lars Magne Ingebrigtsen
2008-10-16 13:43     ` David Engster
2008-10-16 13:52       ` Lars Magne Ingebrigtsen
2008-10-16 16:27         ` Mark Plaksin
2008-10-16 17:15           ` Lars Magne Ingebrigtsen
2008-10-17  8:45             ` Paul R
2008-10-17  8:57               ` David Engster
2008-10-17  9:18                 ` Paul R
2008-10-17 14:00             ` Andreas Seltenreich
2008-10-16 17:46           ` Robert D. Crawford
2008-10-16 19:27             ` David Engster
2008-10-20 17:13               ` Mark Plaksin
2008-10-21 15:53                 ` Ted Zlatanov
2008-10-21 16:24                 ` Adam Sjøgren
2008-10-28  0:04                 ` Mark Plaksin
2008-10-28  5:20                   ` Andreas Seltenreich
2008-10-28 12:11                     ` Mark Plaksin
2008-10-31  8:00                       ` nnrss-ignore-article-fields for more than just fields jidanni
2008-10-31 17:39                         ` Ted Zlatanov [this message]
2008-11-10 22:04                           ` Ted Zlatanov
2008-11-11  7:37                             ` Reiner Steib
2008-11-11 14:38                               ` Ted Zlatanov
2008-11-19 22:41                             ` Adam Sjøgren
2008-11-20 16:40                               ` Ted Zlatanov
2008-10-16 13:17 ` Using nnrss very actively Robert D. Crawford
2008-10-16 13:18 ` Adam Sjøgren
2008-10-18 23:10 ` Sebastian Krause
2008-10-18 23:16 ` Kevin Ryde
2008-10-20 20:20   ` Lars Magne Ingebrigtsen
2008-10-21 15:56     ` Ted Zlatanov
2008-10-25  0:03     ` Kevin Ryde
2008-11-03 23:43       ` Content-Location for w3m display (was: Using nnrss very actively) Kevin Ryde

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=8663n864vo.fsf@lifelogs.com \
    --to=tzz@lifelogs.com \
    --cc=ding@gnus.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 NNTP newsgroup(s).