Re: unignore \ X-Spam-Status

Dennis Preiser <[email protected]>
Newsgroups gmane.mail.mutt.user
Message-ID <[email protected]>
On Wed, Nov 20, 2024 at 10:15:08AM +0000, Taken wrote:
> X-Spam-Status(X-Spam-Status: No, score=-2.1 required=5
> tests=DKIM_SIGNED=0.1,DKIM_VALID=-0.1,DKIM_VALID_AU=-0.1,HTML_MESSAGE=0.001,SPF_HELO_NONE=0.001,URIBL_DBL_BLOCKED_OPENDNS=0.001,PURELYMAIL_IP_REPUTATION=-2
> autolearn=no autolearn_force=no version=4.0.0
> X-Pm-Spam-PURELYMAIL-IP-REPUTATION:
> -2;EffectiveIp=80.241.56.152,SpamProbability=0.07)
> 
> but only “score=-2.1”? I can't figure out what to write in muttrc.

You could use display-filter. First unfold the header line
'X-Spam-Status' so that everything is in one line, and then search for
the substring and output it accordingly. Someone has done something
similar here to suppress duplicate header lines:

<https://unix.stackexchange.com/questions/305442/make-mutt-show-only-one-instance-of-a-header>

Dennis
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.