Skip to content

Wrong attachement filename when mail mime header was too long #83221

Closed
@manfred-kaiser

Description

@manfred-kaiser
BPO 39040
Nosy @warsaw, @bitdancer, @maxking, @miss-islington, @manfred-kaiser
PRs
  • bpo-39040: added whitespaced to linesep_splitter in email.policy #17590
  • bpo-39040: Fix parsing of email mime headers with whitespace between encoded-words. #17620
  • [3.9] bpo-39040: Fix parsing of email mime headers with whitespace between encoded-words. (gh-17620) #20504
  • [3.8] bpo-39040: Fix parsing of email mime headers with whitespace between encoded-words. (gh-17620) #20505
  • [3.7] bpo-39040: Fix parsing of email mime headers with whitespace between encoded-words. (gh-17620) #20506
  • Files
  • testscript.py: Script to read filenames
  • error.eml: Mail with broken filename
  • original_mail_from_gmail.eml: downloaded mail from gmail (web interface). I only edited the the mail addresses for privacy reasons. Same problem with this mail
  • 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 2019-12-13.16:59:51.619>
    labels = ['3.8', 'type-bug', '3.7', 'expert-email', '3.9']
    title = 'Wrong attachement filename when mail mime header was too long'
    updated_at = <Date 2020-05-29.11:43:51.599>
    user = 'https://github.com/manfred-kaiser'

    bugs.python.org fields:

    activity = <Date 2020-05-29.11:43:51.599>
    actor = 'miss-islington'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['email']
    creation = <Date 2019-12-13.16:59:51.619>
    creator = 'mkaiser'
    dependencies = []
    files = ['48775', '48776', '48777']
    hgrepos = []
    issue_num = 39040
    keywords = ['patch']
    message_count = 23.0
    messages = ['358343', '358345', '358350', '358351', '358352', '358378', '358384', '358393', '358395', '358396', '358458', '358460', '358463', '358500', '358530', '358573', '358608', '358853', '358857', '370276', '370298', '370299', '370300']
    nosy_count = 5.0
    nosy_names = ['barry', 'r.david.murray', 'maxking', 'miss-islington', 'mkaiser']
    pr_nums = ['17590', '17620', '20504', '20505', '20506']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue39040'
    versions = ['Python 3.7', 'Python 3.8', 'Python 3.9']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions