From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/45012 Path: main.gmane.org!not-for-mail From: Norman Walsh Newsgroups: gmane.emacs.gnus.general Subject: Re: nnml splitting on encoded headers Date: Tue, 28 May 2002 16:45:31 -0400 Sender: owner-ding@hpc.uh.edu Message-ID: <87off09f2s.fsf@nwalsh.com> References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1022621130 801 127.0.0.1 (28 May 2002 21:25:30 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 28 May 2002 21:25:30 +0000 (UTC) Cc: ding@gnus.org Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17CoTB-0000Ch-00 for ; Tue, 28 May 2002 23:25:29 +0200 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 17CoS9-00014g-00; Tue, 28 May 2002 16:24:25 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 28 May 2002 16:24:41 -0500 (CDT) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id QAA15866 for ; Tue, 28 May 2002 16:24:29 -0500 (CDT) Original-Received: (qmail 25052 invoked by alias); 28 May 2002 21:24:02 -0000 Original-Received: (qmail 25047 invoked from network); 28 May 2002 21:24:02 -0000 Original-Received: from dc-mx14.cluster1.charter.net (209.225.8.24) by gnus.org with SMTP; 28 May 2002 21:24:02 -0000 Original-Received: from [68.112.234.9] (HELO mercury) by dc-mx14.cluster1.charter.net (CommuniGate Pro SMTP 3.5.9) with ESMTP id 53621566; Tue, 28 May 2002 17:01:35 -0400 Original-Received: from ndw by mercury with local (Exim 3.35 #1 (Debian)) id 17CnqX-0005TO-00; Tue, 28 May 2002 16:45:33 -0400 Original-To: Mark Thomas X-URL: http://nwalsh.com/ In-Reply-To: (Mark Thomas's message of "Fri, 24 May 2002 16:10:06 -0400") Original-Lines: 42 User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.1 (i686-pc-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:45012 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:45012 / Mark Thomas was heard to say: | I'd like to toss away mail that I know I'm not going to be able to | read. | | I have split rules: | ("subject" "=\\?euc-kr\\?" "mail.spam.asian") | ("subject" "=\\?ks_c_5601-1987\\?" "mail.spam.asian") | but these don't to work because Gnus has already decoded the messages. / Mark Thomas was heard to say: | To answer my own question | | > Is there any way I can split on the non-decoded Subject header (the | > Subject header I see when I C-u g the message)? | | (add-hook 'nnmail-split-hook 'rfc2047-encode-message-header) These messages hint at a feature I would dearly love to have: the ability to avoid mail in character sets I can't read. But I'm confused by one part. Looking at some representative asian spam on my machine, C-u g doesn't display the encoding in the subject, instead I see things like this: Message-Id: <200205281859.OAA05629@nexus.berkshire.net> Reply-To: no@kojein.com From: ¿¹½º¸Ç To: ndw@nwalsh.com Subject: (±¸ÀÎ,±¤°í)ÀçÅþ˹٠ÇϽǺРMime-Version: 1.0 Content-Type: text/html; charset="ks_c_5601-1987" Do the split rules shown above really match on the charset described in Content-Type, or is there some other switch I have to enable to make that appear literally in the subject? Be seeing you, norm -- Norman Walsh | Youth lasts much longer than young http://nwalsh.com/ | people think.--Comtesse Diane