Invalid MIME encoding generated by email.mime (line too long)

Open
#70,136 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
backend

Research direction

Start by reviewing PR 30980 and the linked test_mime_long_line.py and test_mime_long_line_workaround.py files, then inspect the Python email library code they exercise. Reproduce the invalid MIME output and determine whether the existing PR resolves the line-length issue; done means the generated encoding is valid without breaking the relevant email tests.

Written by the indexing model from the issue text.

Description

3.10 3.11 3.9 (EOL) stdlib topic-email type-bug
BPO 25948
Nosy @warsaw, @bitdancer, @180909
PRs
  • python/cpython#30980
  • Files
  • test_mime_long_line.py: Simple test case
  • test_mime_long_line_workaround.py: Demonstration of the described workaround
  • 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 2015-12-25.10:33:43.528>
    labels = ['type-bug', 'expert-email', '3.10', '3.11', 'library', '3.9']
    title = 'Invalid MIME encoding generated by email.mime (line too long)'
    updated_at = <Date 2022-01-28.07:16:40.176>
    user = 'https://bugs.python.org/vog'
    

    bugs.python.org fields:

    activity = <Date 2022-01-28.07:16:40.176>
    actor = 'wangjiahua'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)', 'email']
    creation = <Date 2015-12-25.10:33:43.528>
    creator = 'vog'
    dependencies = []
    files = ['41415', '41416']
    hgrepos = []
    issue_num = 25948
    keywords = ['patch']
    message_count = 1.0
    messages = ['256982']
    nosy_count = 4.0
    nosy_names = ['barry', 'r.david.murray', 'vog', 'wangjiahua']
    pr_nums = ['30980']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue25948'
    versions = ['Python 3.9', 'Python 3.10', 'Python 3.11']
    

    Dominant language
    Python
    Stars
    77.2k
    Forks
    36k
    Avg merge
    1d 9h
    Merged PRs (30d)
    558

    Contributor guide

    Open the contributing guide

    First steps

    1. Read the whole issue, then the project's contributing guide.
    2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
    3. Fork the repository and make your change on a branch.
    4. Open a pull request that references the issue number.

    More from python/cpython

    All issues in python/cpython

    Similar issues

    More Python issues

    Get new issues in your inbox

    A short digest of beginner-friendly GitHub issues.