info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: auto-kill mails with "X-Spam-Flag: YES"


From: Emanuel Berg
Subject: Re: auto-kill mails with "X-Spam-Flag: YES"
Date: Mon, 08 Feb 2016 23:52:26 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Well, Subject isn't one of the "extra" headers.
> But it should work for all the extra headers that
> you put in both those two variables mentioned...

I use the interactive system and do not edit the file
by hand (yet). So without Subject being in

    (setq gnus-extra-headers   '(To Cc Keywords Gcc Newsgroups X-Spam-Flag 
Subject)
          nnmail-extra-headers gnus-extra-headers)

it says it isn't there.

> I saw that you had an "exact" match instead of
> a substring match, so perhaps the X-Spam-Flag wasn't
> exactly "YES"?

It is exactly "YES" unless there are whitespaces,
newlines and such to consider. Anyway it is the same
situation with a substring match:

    (("extra"
      ("Hej" -1000 nil s "Subject")
      ("YES" -1000 nil s "X-Spam-Flag"))
      ... )

-- 
underground experts united
http://user.it.uu.se/~embe8573




reply via email to

[Prev in Thread] Current Thread [Next in Thread]