Skip to content

Fails to parse some Subject headers in Google mbox #3

@djc

Description

@djc

I get this error a number of times:

error: Err(Error { repr: Custom(Custom { kind: InvalidInput, error: StringError("invalid header") }) })

Here are some example headers from spam in the archive:

b'X-GOOMOJI-Subject: Djc Ochtman: Cash_Loan_Up_To_1000\xc2\xa3, No_Bank_Account'
b'Subject: Djc Ochtman: Cash_Loan_Up_To_1000\xc2\xa3, No_Bank_Account'
b'Subject: How to manipulate her \xe2\x80\x9chorniness\xe2\x80\x9d neuron. (The 5 habits of highly horny women).'

(This led me to wonder if you'd checked out the https://github.com/niax/rust-email crate for the parsing of messages? It would be nice if all the effort on getting these ugly details was shared -- but maybe that crate doesn't fit your needs in some way.)

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