Skip to content

Avoid unicode exceptions on malformed email in ipr process_email management command #3489

Description

@ietf-svn-bot

owner:jennifer@painless-security.com resolution_fixed type_defect | by jennifer@painless-security.com


The ipr process_email management command decodes an incoming message, then validates its 'to' field before accepting it. This leads to an exception if an email is incorrectly encoded.

To avoid this, leave the message as bytes until it is known that it will be accepted, then decode it.


Issue migrated from trac:3489 at 2022-03-04 09:22:26 +0000

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions