From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/88507 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.gnus.general Subject: Re: A quick way to view the spam headers of an article from the summary buffer? Date: Mon, 15 Apr 2019 08:40:36 -0700 Message-ID: <875zrfnuob.fsf@ericabrahamsen.net> References: <867eby1p3d.fsf@dod.no> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="194154"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: ding@gnus.org Original-X-From: ding-owner+M36710@lists.math.uh.edu Mon Apr 15 17:41:47 2019 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hG3jv-000oGQ-CW for ding-account@gmane.org; Mon, 15 Apr 2019 17:41:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.92) (envelope-from ) id 1hG3j5-0001PY-M0; Mon, 15 Apr 2019 10:40:55 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1hG3iz-0001Mo-Kx for ding@lists.math.uh.edu; Mon, 15 Apr 2019 10:40:49 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1hG3iy-0004a0-8J for ding@lists.math.uh.edu; Mon, 15 Apr 2019 10:40:49 -0500 Original-Received: from [195.159.176.226] (helo=blaine.gmane.org) by quimby.gnus.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hG3iu-0007sD-9f for ding@gnus.org; Mon, 15 Apr 2019 17:40:46 +0200 Original-Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1hG3is-000n9j-T8 for ding@gnus.org; Mon, 15 Apr 2019 17:40:42 +0200 X-Injected-Via-Gmane: http://gmane.org/ Cancel-Lock: sha1:3E6gBJ9KxqVMDAE36TTIUVSvOLk= List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:88507 Archived-At: Steinar Bang writes: > When I see an obvious spam message that has survived SpamAssassin I > sometimes(*) do a 'C-u g' to watch the article with all headers and raw > undecoded MIME structure(**). > > What I would have liked to have is a summary command that just shows me > the spam headers in the article buffer (or a buffer that is in the same > place in the emacs layout as the article buffer). > > Does anyone else have a command that does this? Is there something > built-in to gnus that I have overlooked? > > The headers I'm interested in, are: > X-Spam-Status > X-Spam-Level > X-Spam-Checker-Version The two easiest (built-in) ways to do this would be to use "t" to toggle header display -- that will show all the headers, which is probably more than you want. The other would be concatting "X-Spam-*\\|" to the value of `gnus-visible-headers'. That would make the spam headers always visible, though. Maybe just add "X-Spam-Status" to the visible headers, and use "t" to see the others when you need to? Eric