Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# ⛔️ DEPRECATED

This feature has been integrated into Radicale as of version 3.4.1.
RadicaleIMAP has been integrated into Radicale as of version 3.4.1.

This fork was created to support UTF-8 in IMAP authentication, and
the commit for that was merged to Radicale 3.5.0.

So this repo here is of use to you only if you need Radicale version
3.4.0 or less. It will conflict with Radicale 3.4.1.

# Radicale IMAP

Expand Down
5 changes: 4 additions & 1 deletion radicale_imap/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ def login(self, login, password):
if security == "starttls":
connection.starttls(ssl.create_default_context())
try:
connection.login(login, password)
connection.authenticate(
"PLAIN",
lambda _: "{0}\x00{0}\x00{1}".format(login, password).encode()
)
except imaplib.IMAP4.error as e:
logger.debug(
"IMAP authentication failed: %s", e, exc_info=True)
Expand Down