Emanuel Berg <[email protected]> writes:

> Lars Ingebrigtsen <[email protected]> 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" "<[email protected]>" "5 Feb 2016 
> 21:24:06 +0700" "<[email protected]>" "" 1143 41 
> "debian.uxu mail.ooa:1" ((To . "<[email protected]>") (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

_______________________________________________
info-gnus-english mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/info-gnus-english

Reply via email to