From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 2081 invoked from network); 22 Mar 2023 13:44:17 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 22 Mar 2023 13:44:17 -0000 Received: from lists1.math.uh.edu ([129.7.128.208]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1peylD-001Cyz-5N for ml@inbox.vuxu.org; Wed, 22 Mar 2023 08:44:15 -0500 Received: from lists1.math.uh.edu ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.96) (envelope-from ) id 1peylC-001vyl-2n for ml@inbox.vuxu.org; Wed, 22 Mar 2023 08:44:14 -0500 Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtp (Exim 4.96) (envelope-from ) id 1petZM-001vW1-2O for ding@lists.math.uh.edu; Wed, 22 Mar 2023 03:11:40 -0500 Received: from quimby.gnus.org ([95.216.78.240]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1petZC-000uaD-Jy for ding@lists.math.uh.edu; Wed, 22 Mar 2023 03:11:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:Mime-Version:References:Message-ID:Date:Subject: From:To:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=NZPP7bmOkvDSu7A7ekLa9Fx/c7pBicxnmz1Bi/xZ0TE=; b=gl0o62OS9xSr8PDEE9FOTSuMvj i5idQzJ/ymAGytUYvsxyXLzcpeuRJcHzJ5zojWEhJn0+p6724lILfd+94R6MrBaL3IsLeWwrjCyGQ ISSQRmUAuBAlQAxQmjGfU6cB6V/5JQ1pBUr7WdPZ8NV1l/q4bxWnEqAroJt7+/gCZCfk=; Received: from ciao.gmane.io ([116.202.254.214]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1petZ0-0000GO-LI for ding@gnus.org; Wed, 22 Mar 2023 09:11:24 +0100 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1petYy-0008Yz-Qk for ding@gnus.org; Wed, 22 Mar 2023 09:11:16 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: ding@gnus.org From: Andrew Cohen Subject: Re: Handling spam Date: Wed, 22 Mar 2023 16:11:09 +0800 Message-ID: <87v8itp5nm.fsf@ust.hk> References: Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:BoL1BbpMbr7WtOrQmPXKAXvrKko= List-ID: Precedence: bulk >>>>> "CL" == Christian Lynbech writes: CL> Does any of you use gnus to handle spam, and if so, how do you CL> do it? I have for quite some time been using the spam-stat CL> library that is bundled with emacs, but it is not working so CL> well for me. [...] CL> So I am not sure what to do, either I need to teach the split CL> rule to look at the raw message or I need to retrain my spam CL> detection on formatted messages, something I can certainly do CL> but which perhaps is less efficient in distinguishing between CL> spam and non-spam. Certainly, being able to quickly process CL> whole directories is rather convenient. You need to look at 'spam-stat-washing-hook: "Hook applied to each message before analysis." With this you can manipulate the article before the spam analysis. A common choice is (require 'spam-wash) (add-hook 'spam-stat-washing-hook 'spam-wash) which will decode MIME encodings before doing the spam analysis. I don't recall if it deals with html email but you should be able to modify the function 'spam-wash easily enough to do what you want. Best, Andy -- Andrew Cohen