[Twisted-Python] IMAP4 plain authentication
phil at bubblehouse.org
Mon Jan 23 09:08:16 EST 2006
On Jan 23, 2006, at 6:00 AM, Thomas HERVE wrote:
> Quoting David Watson <mail at david-watson.net>:
>> I can`t seem to find a suitable PLAIN method in IMAP4client, so
>> before I
>> re-invent the wheel, is there a standard Twisted way to handle this
>> situation (or am I simply missing something obvious)?
> You may want to look at imap4.PLAINAuthenticator (and register it
> the same way
> as CramMD5ClientAuthenticator and LOGINAuthenticator).
If you're just working through a tutorial you can disregard this, but
you might consider the fact that the IMAPrev4 spec doesn't allow
plaintext authentication over a non-SSL connection.
Of course, no server I know of implements the spec to the letter (I
believe there's a reason for this I'm forgetting), but changing a
reactor.connectTCP() call to a reactor.connectSSL() call (with the
requisite arguments) is always something I find amazing (due to its
Hrm, that was a lot of parentheses....well, it's still early...
More information about the Twisted-Python