Skip to content

login with unicode password #379

@tshirtman

Description

@tshirtman

Not sure if the issue lies on the side of imapclient or python's imaplib, but to be able to connect using a non-ascii password, i need to do

        client = IMAPClient(host, use_uid=True, ssl=True)
        client._imap._mode_utf8()  # this line shouldn't be needed, or at least not use private objects/methods
        client.login(user, password)

It seems imaplib supports logging with unicode username/passwords, but using the authenticate method, but the only usage seems to be for login_cram_md5, i didn't look into making an authobject for login method yet, maybe it's possible, but IMAPClient doesn't expose the authenticate method anyway.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions