Gnus development mailing list
 help / color / mirror / Atom feed
From: Lars Magne Ingebrigtsen <larsi@gnus.org>
Subject: Re: killing non-English posts
Date: Wed, 01 Jan 2003 21:28:16 +0100	[thread overview]
Message-ID: <m3smwczkbj.fsf@quimbies.gnus.org> (raw)
In-Reply-To: <15552.2435.999970.321723@radon.ee.ryerson.ca>

luis fernandes <elf@ee.ryerson.ca> writes:

> How do I tell gnus to kill any posts that are not encoded in English
> (latin-1)?

Well, they can be in English and still be iso-8859-{1,9,15}, or
utf-8, or iso-2022, so that's kinda difficult to do.

I think the most likely thing to do is to go through the text in the
body of the message and check whether the text contains more than 50%
[a-zA-Z] characters.  If not, it's unlikely that it's English.

I'll leave implementing this as an exercise to the reader.

-- 
(domestic pets only, the antidote for overdose, milk.)
   larsi@gnus.org * Lars Magne Ingebrigtsen



      reply	other threads:[~2003-01-01 20:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-19 12:11 luis fernandes
2003-01-01 20:28 ` Lars Magne Ingebrigtsen [this message]

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=m3smwczkbj.fsf@quimbies.gnus.org \
    --to=larsi@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).