Skip to content

Add functions to parse List-Id #118

@link2xt

Description

@link2xt

List-Id is defined in RFC 2919.

A header may look like this (two lines, second line starts with a tabulation):

List-Id: "Mailing list for \"Foo Bar\""                                    
    <foo-bar.lists.example.net>  

It should be possible to extract so-called "phrase" part of the header (Mailing list for "Foo bar").
Existing function addrparse_header does not work because it returns MailListAddr. An attempt to extract an address with extract_singe_info fails to parse the field with an error "Invalid address found: must contain a '@' symbol".

So the field cannot be parsed as an address list and a dedicated parser for List-Id is needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions