这是indexloc提供的服务,不要输入任何密码
Skip to content

Textproto should handle missing boundary in a better way ? #129

@akissa

Description

@akissa

When dealing with spam you find lots of malformed messages like some missing the final boundary in multipart messages.
In cases like this the parser returns an encapsulated EOF error like so multipart: NextPart: EOF from

return nil, fmt.Errorf("multipart: NextPart: %v", err)

That is hard to detect in the calling code. It would be better to have a named error instead like missing boundary which can be detected in calling code because the message is actually parsed so the error should not fail the whole process

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