mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-25 17:06:01 +03:00
[GH-ISSUE #2432] imap4_utf_7 encoding/decoding fails in Python 3.9 #1597
Labels
No labels
bug
bug
dependencies
design
documentation
duplicate
enhancement
enhancement
enhancement
feedback-needed
help-needed
help-needed
installer
invalid
looking-for-sponsors
modoboa-contacts
new-ui
new-ui
pr
pull-request
pyconfr
python
question
security
stale
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/modoboa-modoboa#1597
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cbuh4 on GitHub (Jan 2, 2022).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/2432
Impacted versions
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.
@psztoch commented on GitHub (Jan 3, 2022):
Try this: https://github.com/modoboa/modoboa-webmail/issues/227
@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.
@tonioo commented on GitHub (Jan 7, 2022):
Duplicate.