[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: auto-kill mails with "X-Spam-Flag: YES"
From: |
Lars Ingebrigtsen |
Subject: |
Re: auto-kill mails with "X-Spam-Flag: YES" |
Date: |
Wed, 10 Feb 2016 10:47:20 +1100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
Emanuel Berg <embe8573@student.uu.se> writes:
> Lars Ingebrigtsen <larsi@gnus.org> writes:
>
>>> 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 kinda doubt you can add one of the non-extra
>> headers to the extra list and have it work.
>
> ... ?
>
> How should it be done then?
To score on "Subject" you have to use subject scoring, not extra
scoring. I think.
>> Could you try edebugging though gnus-score-string
>> and see why this doesn't work?
>
> Is there anything in particular I should look for?
[...]
> Result: (([1 "Min fitta våt" "<embe8573@student.uu.se>" "5 Feb 2016
> 21:24:06 +0700" "<002d01d16022$0403d4be$66273a8e$@student.uu.se>" "" 1143 41
> "debian.uxu mail.ooa:1" ((To . "<embe8573@student.uu.se>") (X-Spam-Flag .
> "YES") (Subject . "=?utf-8?B?TWluIGZpdHRhIHbDpXQ=?="))] . 0))
So the X-Spam-Flag is definitely in the data we're using to score...
Oh, and the Subject, too. :-)
> Result: ("YES" -1000 nil e "X-Spam-Flag")
>
> Result: -1000 (#o377777777777777776030, #x3ffffffffffffc18)
>
> Result: -1000 (#o377777777777777776030, #x3ffffffffffffc18)
>
> Result: ("YES" -1000 nil e "X-Spam-Flag")
And this kinda seems to imply that it's finding a match?
> Result: "[ (](X-Spam-Flag \\.
> \"\\([^\"]*\\\\\"\\)*[^\"]*YES\\([^\"]*\\\\\"\\)*[^\"]*\")[ )]"
>
> Result: re-search-forward
>
> Result: re-search-forward
>
> Result: 101 (#o145, #x65, ?e)
>
> Result: nil
What's in the scoring buffer at this point? It looks like it's this
search that's failing...
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- Re: auto-kill mails with "X-Spam-Flag: YES", (continued)
- Re: auto-kill mails with "X-Spam-Flag: YES", Lars Ingebrigtsen, 2016/02/06
- Re: auto-kill mails with "X-Spam-Flag: YES", Emanuel Berg, 2016/02/06
- Message not available
- Re: auto-kill mails with "X-Spam-Flag: YES", Lars Ingebrigtsen, 2016/02/06
- Re: auto-kill mails with "X-Spam-Flag: YES", Emanuel Berg, 2016/02/07
- Message not available
- Re: auto-kill mails with "X-Spam-Flag: YES", Lars Ingebrigtsen, 2016/02/07
- Re: auto-kill mails with "X-Spam-Flag: YES", Emanuel Berg, 2016/02/07
- Message not available
- Re: auto-kill mails with "X-Spam-Flag: YES", Lars Ingebrigtsen, 2016/02/07
- Re: auto-kill mails with "X-Spam-Flag: YES", Emanuel Berg, 2016/02/08
- Message not available
- Re: auto-kill mails with "X-Spam-Flag: YES", Lars Ingebrigtsen, 2016/02/08
- Re: auto-kill mails with "X-Spam-Flag: YES", Emanuel Berg, 2016/02/08
- Message not available
- Re: auto-kill mails with "X-Spam-Flag: YES",
Lars Ingebrigtsen <=
- Re: auto-kill mails with "X-Spam-Flag: YES", Emanuel Berg, 2016/02/09
- Message not available
- Re: auto-kill mails with "X-Spam-Flag: YES", Lars Ingebrigtsen, 2016/02/09
- Re: auto-kill mails with "X-Spam-Flag: YES", Emanuel Berg, 2016/02/10
- Message not available
- Re: auto-kill mails with "X-Spam-Flag: YES", Lars Ingebrigtsen, 2016/02/10
- Re: auto-kill mails with "X-Spam-Flag: YES", Emanuel Berg, 2016/02/16
- Message not available
- Re: auto-kill mails with "X-Spam-Flag: YES", Lars Ingebrigtsen, 2016/02/20
- Re: auto-kill mails with "X-Spam-Flag: YES", Emanuel Berg, 2016/02/20
- Message not available
- Re: auto-kill mails with "X-Spam-Flag: YES", Lars Ingebrigtsen, 2016/02/20
- Re: auto-kill mails with "X-Spam-Flag: YES", Emanuel Berg, 2016/02/20
Re: auto-kill mails with "X-Spam-Flag: YES", Emanuel Berg, 2016/02/07