[GH-ISSUE #2432] imap4_utf_7 encoding/decoding fails in Python 3.9 #1597

Closed
opened 2026-02-27 11:18:00 +03:00 by kerem · 3 comments
Owner

Originally created by @cbuh4 on GitHub (Jan 2, 2022).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/2432

Impacted versions

  • OS Type: Debian
  • OS Version: 11
  • Database Type: MySQL
  • Database version: *
  • Modoboa: 2.0.0b3
  • installer used: Yes
  • Webserver: Nginx

Steps to reproduce

When installing beta to be able to work with 3.9.2 which is default in debian 11 the /webmail/ route throws an error on initial load.
With debug = True it shows a problem with the imap4-utf-7 encoding/decoding (after fiddling with unitialized data var in getquota function of imaputils.py first ;) )

Current behavior

Call of route /webmail/ fails

Expected behavior

With Python 3.9 the naming convention was changed back to standard.
In imap_utf7.py the hyphens in corresponding functions should be replaced with underscores.

see also: https://twistedmatrix.com/trac/ticket/9832 and https://bugs.python.org/issue37751
Naming convention should be adopted to PY3.9 naming convention.

Originally created by @cbuh4 on GitHub (Jan 2, 2022). Original GitHub issue: https://github.com/modoboa/modoboa/issues/2432 # Impacted versions * OS Type: Debian * OS Version: 11 * Database Type: MySQL * Database version: * * Modoboa: 2.0.0b3 * installer used: Yes * Webserver: Nginx # Steps to reproduce When installing beta to be able to work with 3.9.2 which is default in debian 11 the /webmail/ route throws an error on initial load. With debug = True it shows a problem with the imap4-utf-7 encoding/decoding (after fiddling with unitialized data var in getquota function of imaputils.py first ;) ) # Current behavior Call of route /webmail/ fails # Expected behavior With Python 3.9 the naming convention was changed back to standard. In imap_utf7.py the hyphens in corresponding functions should be replaced with underscores. see also: https://twistedmatrix.com/trac/ticket/9832 and https://bugs.python.org/issue37751 Naming convention should be adopted to PY3.9 naming convention.
kerem 2026-02-27 11:18:00 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@psztoch commented on GitHub (Jan 3, 2022):

Try this: https://github.com/modoboa/modoboa-webmail/issues/227

<!-- gh-comment-id:1004406234 --> @psztoch commented on GitHub (Jan 3, 2022): Try this: https://github.com/modoboa/modoboa-webmail/issues/227
Author
Owner

@avsdev-cw commented on GitHub (Jan 4, 2022):

I've also run into this over the last few days and can confirm that the linked issue does fix this problem.

<!-- gh-comment-id:1004700340 --> @avsdev-cw commented on GitHub (Jan 4, 2022): I've also run into this over the last few days and can confirm that the linked issue does fix this problem.
Author
Owner

@tonioo commented on GitHub (Jan 7, 2022):

Duplicate.

<!-- gh-comment-id:1007498621 --> @tonioo commented on GitHub (Jan 7, 2022): Duplicate.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#1597
No description provided.