Skip to content

Add mUTF-7 codec (UTF-7 modified for IMAP) #66788

Closed

Description

@jcea
BPO 22598
Nosy @jcea, @pitrou, @ezio-melotti, @vadmium, @serhiy-storchaka, @raulcd, @lcnittl
Dependencies
  • bpo-24848: Warts in UTF-7 error handling
  • 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/serhiy-storchaka'
    closed_at = None
    created_at = <Date 2014-10-10.10:24:17.153>
    labels = ['type-feature', 'expert-unicode']
    title = 'Add mUTF-7 codec (UTF-7 modified for IMAP)'
    updated_at = <Date 2020-05-13.15:30:22.977>
    user = 'https://github.com/jcea'

    bugs.python.org fields:

    activity = <Date 2020-05-13.15:30:22.977>
    actor = 'lcnittl'
    assignee = 'serhiy.storchaka'
    closed = False
    closed_date = None
    closer = None
    components = ['Unicode']
    creation = <Date 2014-10-10.10:24:17.153>
    creator = 'jcea'
    dependencies = ['24848']
    files = []
    hgrepos = []
    issue_num = 22598
    keywords = []
    message_count = 8.0
    messages = ['228979', '229001', '229103', '247159', '248174', '248178', '365819', '368785']
    nosy_count = 8.0
    nosy_names = ['jcea', 'pitrou', 'ezio.melotti', 'martin.panter', 'serhiy.storchaka', 'raulcd', 'juris', 'lcnittl']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = 'needs patch'
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue22598'
    versions = ['Python 3.6']

    Linked PRs

    Activity

    1. jcea commented on Oct 10, 2014

      @jcea
      MemberAuthor

      Looks like there is consensus to add "mUTF-7" or "imap4 UTF-7" to the codec module for Python 3.5. Details in https://mail.python.org/pipermail/python- dev/2014-October/136601.html

    2. self-assigned this
      on Oct 10, 2014
    3. added
      type-feature
      on Oct 10, 2014
    4. serhiy-storchaka commented on Oct 10, 2014

      @serhiy-storchaka
      Member

      Could you please add a link to RFC?

    5. changed the title [-]IMAP4 UTF-7 support[/-] [+]Add mUTF-7 codec (UTF-7 modified for IMAP)[/+] on Oct 10, 2014
    6. pitrou commented on Oct 11, 2014

      @pitrou
      Member

      See http://tools.ietf.org/html/rfc3501#section-5.1.3
      Note how detailed the specification of "modified utf-7" is :-)

    7. vadmium commented on Jul 23, 2015

      @vadmium
      Member

      Not sure on the scope of this, but if someone wants to implement the incremental codec API, be aware that the existing UTF-7 codec, PyUnicode_DecodeUTF7Stateful() API, etc, does not actually support this properly. See bpo-20132, e.g. the test cases in <https://bugs.python.org/issue20132#msg232850\>. I recommend against impementing an incremental or stream codec based only on a stateless codec.

    8. jcea commented on Aug 7, 2015

      @jcea
      MemberAuthor

      ping.

    9. removed their assignment
      on Aug 7, 2015
    10. serhiy-storchaka commented on Aug 7, 2015

      @serhiy-storchaka
      Member

      I take this.

    11. juris commented on Apr 5, 2020

      jurismannequin
      Mannequin

      Would be good to have solution for this out-of-box in Python3. Any news?

    12. lcnittl commented on May 13, 2020

      lcnittlmannequin
      Mannequin

      I just stumbled over this too. Very eager to know if there are any news on the state of out-of-box support for the "mUTF-7" codec.

    13. transferred this issue fromon Apr 10, 2022
    14. added 4 commits that reference this issue on Jul 7, 2026
    15. serhiy-storchaka commented on Jul 8, 2026

      @serhiy-storchaka
      Member

      Implemented in #153149. Now we can use it in imaplib.

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Labels

    topic-unicodetype-feature

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions