From 6e26b718d80ad3f64e38a95841727ece005d6890 Mon Sep 17 00:00:00 2001 From: Mohamed Jamal Ghayyad Date: Mon, 31 Jan 2022 02:40:31 -0800 Subject: [PATCH] Patch for imap4-utf-7 on Debian 11 and Python 3.9 #227 Patch for imap4-utf-7 on Debian 11 and Python 3.9 #227 --- modoboa/lib/imap_utf7.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modoboa/lib/imap_utf7.py b/modoboa/lib/imap_utf7.py index c8901a9b6..c40348ab8 100644 --- a/modoboa/lib/imap_utf7.py +++ b/modoboa/lib/imap_utf7.py @@ -126,7 +126,7 @@ class StreamWriter(codecs.StreamWriter): def imap4_utf_7(name): - if name == "imap4-utf-7": + if name == "imap4-utf-7" or name == "imap4_utf_7": return (encoder, decoder, StreamReader, StreamWriter)