Skip to content

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

@manfred-kaiser

Description

@manfred-kaiser
BPO39040
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=Noneclosed_at=Nonecreated_at=<Date2019-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=<Date2020-05-29.11:43:51.599>user='https://github.com/manfred-kaiser'

    bugs.python.org fields:

    activity=<Date2020-05-29.11:43:51.599>actor='miss-islington'assignee='none'closed=Falseclosed_date=Nonecloser=Nonecomponents= ['email'] creation=<Date2019-12-13.16:59:51.619>creator='mkaiser'dependencies= [] files= ['48775', '48776', '48777'] hgrepos= [] issue_num=39040keywords= ['patch'] message_count=23.0messages= ['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.0nosy_names= ['barry', 'r.david.murray', 'maxking', 'miss-islington', 'mkaiser'] pr_nums= ['17590', '17620', '20504', '20505', '20506'] priority='normal'resolution=Nonestage='patch review'status='open'superseder=Nonetype='behavior'url='https://bugs.python.org/issue39040'versions= ['Python 3.7', 'Python 3.8', 'Python 3.9']

    Metadata

    Metadata

    Assignees

    No one assigned

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions