From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/48501 Path: main.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: Re: killing non-English posts Date: Wed, 01 Jan 2003 21:28:16 +0100 Organization: Programmerer Ingebrigtsen Sender: owner-ding@hpc.uh.edu Message-ID: References: <15552.2435.999970.321723@radon.ee.ryerson.ca> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1041452891 807 80.91.224.249 (1 Jan 2003 20:28:11 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 1 Jan 2003 20:28:11 +0000 (UTC) Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18TpTG-0000Cs-00 for ; Wed, 01 Jan 2003 21:28:10 +0100 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 18TpTi-0006Wf-00; Wed, 01 Jan 2003 14:28:38 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 01 Jan 2003 14:29:32 -0600 (CST) Original-Received: from sclp3.sclp.com (sclp3.sclp.com [66.230.238.2]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id OAA20675 for ; Wed, 1 Jan 2003 14:29:19 -0600 (CST) Original-Received: (qmail 51193 invoked by alias); 1 Jan 2003 20:28:20 -0000 Original-Received: (qmail 51187 invoked from network); 1 Jan 2003 20:28:20 -0000 Original-Received: from quimby.gnus.org (80.91.224.244) by 66.230.238.6 with SMTP; 1 Jan 2003 20:28:20 -0000 Original-Received: from news by quimby.gnus.org with local (Exim 3.12 #1 (Debian)) id 18TpUJ-000204-00 for ; Wed, 01 Jan 2003 21:29:15 +0100 Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 17 Original-NNTP-Posting-Host: quimbies.gnus.org Original-X-Trace: quimby.gnus.org 1041452955 3740 80.91.231.2 (1 Jan 2003 20:29:15 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 1 Jan 2003 20:29:15 GMT Mail-Copies-To: never X-Now-Playing: Plunderphonics's _69-96 (2)_: "Huck Cyrber - Barelys" User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2.50 (i686-pc-linux-gnu) X-Face: V5~d@hYGHGplM:ekMd4]V(8d.^p)+n=faph.c\z-J:FsJZjqkK*3{{F QxI>zaTOi)qJ7-m-?omcw<;|FY+PMobtD?sP+?{"c8jBjO6M8(g@>`Qy?cc$54P#E'$$rS3XJV]3hI ZyU<.9u[:b99\\?dgf9a>qQOA?u+z>o9B#Tgm}^k~A[^Sd|cz^aXD/&E"%#:nTDjin3>WY{')R'S)Y tiVtnGtLr0Q6R;v&Sz4#p'U0GPxYu7g8Nh3AYWALvs@CJp4/v\}5W=;0;* Cancel-Lock: sha1:MCmZglsfStox1JlToclsbGIASFc= Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:48501 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:48501 luis fernandes 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