* killing non-English posts
@ 2002-04-19 12:11 luis fernandes
2003-01-01 20:28 ` Lars Magne Ingebrigtsen
0 siblings, 1 reply; 2+ messages in thread
From: luis fernandes @ 2002-04-19 12:11 UTC (permalink / raw)
How do I tell gnus to kill any posts that are not encoded in English
(latin-1)?
For example, reading gnu.emacs.bug I can tell from the subject that a
post is not in English, so I can delete them without consequence (and
I also think that the Emacs bug-submission form says "Please write in
English since the maintainers only understand it..."; technically,
those posts shouldn't even be there in the first place).
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: killing non-English posts
2002-04-19 12:11 killing non-English posts luis fernandes
@ 2003-01-01 20:28 ` Lars Magne Ingebrigtsen
0 siblings, 0 replies; 2+ messages in thread
From: Lars Magne Ingebrigtsen @ 2003-01-01 20:28 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-01-01 20:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-19 12:11 killing non-English posts luis fernandes
2003-01-01 20:28 ` Lars Magne Ingebrigtsen
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).