From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from mx1.math.uh.edu (mx1.math.uh.edu [129.7.128.32]) by inbox.vuxu.org (Postfix) with ESMTP id BDE07256E7 for ; Mon, 29 Jan 2024 02:07:28 +0100 (CET) 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.97.1) (envelope-from ) id 1rUG7M-00000001JZ7-3zbe for ml@inbox.vuxu.org; Sun, 28 Jan 2024 19:07:25 -0600 Received: from lists1.math.uh.edu ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.97.1) (envelope-from ) id 1rUG7M-00000003yGJ-2ljt for ml@inbox.vuxu.org; Sun, 28 Jan 2024 19:07:20 -0600 Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtp (Exim 4.97.1) (envelope-from ) id 1rUG7K-00000003yGA-01Ed for ding@lists.math.uh.edu; Sun, 28 Jan 2024 19:07:18 -0600 Received: from quimby.gnus.org ([95.216.78.240]) by mx2.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.97.1) (envelope-from ) id 1rUG7F-0000000GvYN-32lz for ding@lists.math.uh.edu; Sun, 28 Jan 2024 19:07:17 -0600 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=T8OGw38Grtlso3iE3MuK4YuzkBGt+ZgzAgmj4Wmf7bQ=; b=ETUPpCc35Vc/brHyvjCJljDWQA tdzOJI+Hltt33CN/r9MQFKceuHh78br0IAD25uD9KvvYoZQtR9vyrcC0nQ908m28hgYW7bcQx1f3e I5O5rhc2fOpGxL5CeAePlYyr+eAouEn6WB3ARXR/JWqXPDe2P46ZQ4Mcg/VYTY5HrMZw=; 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 1rUG73-0001KR-Na for ding@gnus.org; Mon, 29 Jan 2024 02:07:04 +0100 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1rUG72-0003aQ-C2 for ding@gnus.org; Mon, 29 Jan 2024 02:07:00 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org To: ding@gnus.org From: Dan Christensen Subject: Re: Displaying stuff from spamassassin headers in the summary buffer? Date: Sun, 28 Jan 2024 20:06:54 -0500 Message-ID: <87jznt0wy9.fsf@uwo.ca> References: <87zfwqcrd3.fsf@dod.no> <87r0i273uq.fsf@igel.home> <87v87ec7fx.fsf@dod.no> <877cjtmsiq.fsf@ericabrahamsen.net> <87msspcdfq.fsf@dod.no> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:Rsr3SPmLTV1MJJIezCl8e2LIqjk= Mail-Copies-To: never List-ID: Precedence: bulk Here are some old settings that I'm not using these days, but which might do things similar to what you want: (add-to-list 'nnmail-extra-headers 'X-Spam-Status) (add-to-list 'gnus-extra-headers 'X-Spam-Status) (defun jdc-spam-status (h) "The spam rating from the X-Spam-Status header." (string-to-number (gnus-replace-in-string (gnus-extra-header 'X-Spam-Status h) ".*hits=" ""))) (defun gnus-user-format-function-s (h) (let ((ss (jdc-spam-status h))) (if (> (abs ss) 10) (round ss) ss))) With the above settings, I'm able to display the spam score in the summary buffer line using "%us" in gnus-summary-line-format. This could be adapted to display other info. I also sort my spam group by spam score, so the ones that at most likely to be mis-classified messages are together: (defun jdc-gnus-article-sort-by-spam-status (h1 h2) "Sort articles by score from the X-Spam-Status: header." (< (jdc-spam-status h1) (jdc-spam-status h2))) (defun jdc-gnus-thread-sort-by-spam-status (t1 t2) "Sort threads by score from the X-Spam-Status: header." (jdc-gnus-article-sort-by-spam-status (gnus-thread-header t1) (gnus-thread-header t2))) But I don't see where I enable these functions. Dan