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

email quoprimime.py patch for header_encode of empty string, decode with different eol #55799

Closed
michaelhenry mannequin opened this issue Mar 17, 2011 · 3 comments
Closed
Assignees
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@michaelhenry
Copy link
Mannequin

michaelhenry mannequin commented Mar 17, 2011

BPO 11590
Nosy @bitdancer
Files
  • quoprimime_patch_header_encode_decode.patch: Fixes minor bugs in quoprimime.py
  • 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 = 'https://github.com/bitdancer'
    closed_at = <Date 2011-03-23.19:39:41.851>
    created_at = <Date 2011-03-17.16:30:09.913>
    labels = ['type-bug', 'library']
    title = 'email quoprimime.py patch for header_encode of empty string, decode with different eol'
    updated_at = <Date 2011-03-23.19:39:41.850>
    user = 'https://bugs.python.org/michaelhenry'

    bugs.python.org fields:

    activity = <Date 2011-03-23.19:39:41.850>
    actor = 'r.david.murray'
    assignee = 'r.david.murray'
    closed = True
    closed_date = <Date 2011-03-23.19:39:41.851>
    closer = 'r.david.murray'
    components = ['Library (Lib)']
    creation = <Date 2011-03-17.16:30:09.913>
    creator = 'michael.henry'
    dependencies = []
    files = ['21270']
    hgrepos = []
    issue_num = 11590
    keywords = ['patch']
    message_count = 3.0
    messages = ['131265', '131910', '131911']
    nosy_count = 3.0
    nosy_names = ['r.david.murray', 'python-dev', 'michael.henry']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue11590'
    versions = ['Python 3.1', 'Python 2.7', 'Python 3.2', 'Python 3.3']

    @michaelhenry
    Copy link
    Mannequin Author

    michaelhenry mannequin commented Mar 17, 2011

    The attached patch adds unit tests and some minor fixes for the email
    module's quoprimime.py file. The header_encode() function did not
    properly return an empty string when given an empty string. The
    decode() function did not properly detect the input string's EOL
    character.

    This patch depends on application of the patch in issue bpo-11589.

    @michaelhenry michaelhenry mannequin added the stdlib Python modules in the Lib dir label Mar 17, 2011
    @bitdancer bitdancer self-assigned this Mar 23, 2011
    @bitdancer bitdancer added the type-bug An unexpected behavior, bug, or error label Mar 23, 2011
    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Mar 23, 2011

    New changeset 45cc298d40eb by R David Murray in branch '3.1':
    bpo-11590: fix quoprimime decode handling of empty strings and line endings.
    http://hg.python.org/cpython/rev/45cc298d40eb

    New changeset df613f7b726a by R David Murray in branch '3.2':
    Merge bpo-11590: fix quoprimime decode handling of empty strings and line endings.
    http://hg.python.org/cpython/rev/df613f7b726a

    New changeset d9a779be9736 by R David Murray in branch 'default':
    Merge bpo-11590: fix quoprimime decode handling of empty strings and line endings.
    http://hg.python.org/cpython/rev/d9a779be9736

    @bitdancer
    Copy link
    Member

    Thanks again, Michael.

    @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
    stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant