On 27 Apr 2021, at 11:57, Steve Dondley <[email protected]> wrote:
> On 2021-04-27 01:19 PM, Dave Wreski wrote:
>> Invalid List-ID. You can then use that with other weirdness in a meta.
>> header    __LIST_ID_DOMAIN_IN_BRACKETS List-id =~ /<([\w-]+)(\.[\w-]+)+>/
>> meta   LIST_ID_IMPROPER_FORMAT __HAS_LIST_ID && !__LIST_ID_DOMAIN_IN_BRACKETS
>> score  LIST_ID_IMPROPER_FORMAT 0.001
>> describe LIST_ID_IMPROPER_FORMAT List-id has improper format
> 
> You lost me here. The spam has this:
> 
> List-Id: MzY3NDAxMi01Nzg2LTU= <MzY3NDAxMi01Nzg2LTU=.list-id.mailin.fr>
> 
> That's not legit? It's in brackets.

That was my question as well, AFAIK that conforms to the requirements of a 
List-ID header.

Looks legit to me.

This is the spec.

> list-id-header = "List-ID:" [phrase] "<" list-id ">" CRLF


And

>    list-id = list-label "." list-id-namespace
>    list-label = dot-atom-text
>    list-id-namespace = domain-name / unmanaged-list-id-namespace

And here are the RFC 2919 examples for valid List-ID headers:

>     List-Id: List Header Mailing List <list-header.nisto.com>
>     List-Id: <commonspace-users.list-id.within.com>
>     List-Id: "Lena's Personal Joke List"
>          <lenas-jokes.da39efc25c530ad145d41b86f7420c3b.021999.localhost>
>     List-Id: "An internal CMU List" <0Jks9449.list-id.cmu.edu>
>     List-Id: <da39efc25c530ad145d41b86f7420c3b.052000.localhost>

And dot-atom-text includes every character in the above:

> atext           =       ALPHA / DIGIT / ; Any character except controls,
>                         "!" / "#" /     ;  SP, and specials.
>                         "$" / "%" /     ;  Used for atoms
>                         "&" / "'" /
>                         "*" / "+" /
>                         "-" / "/" /
>                         "=" / "?" /
>                         "^" / "_" /
>                         "`" / "{" /
>                         "|" / "}" /
>                         "~"

> dot-atom-text   =       1*atext *("." 1*atext)

Starts with one of atext? Yep. No consecutive periods? Yep.

What's the problem?

-- 
I noticed that but was still trying to work out a way of drawing it
        to everyone's attention that would be sufficiently satisfying,
        combining maximum entertainment value for readers with maximum
        humiliation for you. -- Laura

Reply via email to