Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EmailMessage utf-8 folding error #89714

Open
andrzejQ mannequin opened this issue Oct 21, 2021 · 2 comments
Open

EmailMessage utf-8 folding error #89714

andrzejQ mannequin opened this issue Oct 21, 2021 · 2 comments
Labels
3.9 only security fixes topic-email type-bug An unexpected behavior, bug, or error

Comments

@andrzejQ
Copy link
Mannequin

andrzejQ mannequin commented Oct 21, 2021

BPO 45551
Nosy @warsaw, @bitdancer, @andrzejQ
Files
  • ERROR_folding_in_EmailMessage.py: Missing white space after folding on ','
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2021-10-21.11:18:06.549>
    labels = ['type-bug', 'expert-email', '3.9']
    title = 'EmailMessage utf-8 folding error'
    updated_at = <Date 2021-10-22.13:58:56.178>
    user = 'https://github.com/andrzejQ'

    bugs.python.org fields:

    activity = <Date 2021-10-22.13:58:56.178>
    actor = 'r.david.murray'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['email']
    creation = <Date 2021-10-21.11:18:06.549>
    creator = 'andrzejQ'
    dependencies = []
    files = ['50380']
    hgrepos = []
    issue_num = 45551
    keywords = []
    message_count = 2.0
    messages = ['404583', '404770']
    nosy_count = 3.0
    nosy_names = ['barry', 'r.david.murray', 'andrzejQ']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = None
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue45551'
    versions = ['Python 3.9']

    @andrzejQ
    Copy link
    Mannequin Author

    andrzejQ mannequin commented Oct 21, 2021

    email.message - EmailMessage Error
    Missing white space after folding on ','

    msg['To'] = 'Ab Ć<abc@def.com>,Ab Ć<abc@def.com>,Ab Ć<abc@def.com>,Ab Ć<abc@def.com>'

    print(msg.as_string())
    '''
    To: Ab =?utf-8?q?=C4=86?=<abc@def.com>,Ab =?utf-8?q?=C4=86?=<abc@def.com>,
    Ab =?utf-8?q?=C4=86?=<abc@def.com>,Ab =?utf-8?q?=C4=86?=<abc@def.com>
    Subject: EmailMessage Error. Missing white space after folding on ",".
     https://www.ietf.org/rfc/rfc2822.txt , 2.2.3. Long Header Fields
    '''

    @andrzejQ andrzejQ mannequin added 3.9 only security fixes topic-email type-bug An unexpected behavior, bug, or error labels Oct 21, 2021
    @bitdancer
    Copy link
    Member

    I'm pretty sure this is a duplicate report and that we worked on a fix, but I don't know if it got committed because I can't find the issue...

    (To be clear, the problem here is the lack of whitespace at the start of the folded part of the header.)

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.9 only security fixes topic-email type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant