1
0
mirror of https://github.com/moparisthebest/k-9 synced 2025-03-03 01:51:49 -05:00
Joe Steele 3877f58515 (partially) Fix IMAP LOGIN
Previously, the user name and password were being transmitted as IMAP (RFC
3501) quoted strings.

The problem is that quoted strings are only permitted to carry 7-bit
(ASCII) data, whereas user names and passwords entered in K-9 Mail may not
be ASCII, so K-9 was violating the RFC by sending them as quoted strings.

The solution is to transmit the credentials as IMAP literal strings, which
are permitted for user names and passwords, and which permit the
transmission of 8-bit data.

This is only a partial attempt for fixing the LOGIN command for users with
non-ASCII credentials.  The problem is that IMAP permits 8-bit data for
user names and passwords (if transmitted as literals), but the RFC says
nothing about the character encoding for 8-bit data.  This commit encodes
them as UTF-8.

The RFC author's comments on the subject:
http://mailman2.u.washington.edu/pipermail/imap-protocol/2008-February/000822.html

Ideally, users should avoid the LOGIN command and use the SASL PLAIN
mechanism (within TLS) which explicitly permits UTF-8. (K-9 Mail always
chooses PLAIN over LOGIN, when PLAIN is available.)
2014-02-25 15:22:28 -05:00
2014-01-04 01:52:09 +01:00
2013-11-11 01:09:09 +01:00
2013-03-16 01:57:21 +01:00
2013-11-07 06:48:10 +01:00
2014-02-23 01:04:01 +01:00
2013-09-21 09:23:33 +09:00
2013-12-29 18:45:16 -05:00
2013-05-31 18:00:45 -04:00
2014-02-10 20:00:16 +01:00
2014-02-23 01:36:17 +01:00
2014-02-10 20:43:16 +01:00
2014-02-24 17:04:29 -05:00
2013-11-07 06:48:10 +01:00
2013-11-07 06:48:10 +01:00
2014-02-10 20:00:16 +01:00
2014-02-10 20:43:16 +01:00
2013-06-28 23:59:08 +02:00
Description
No description provided
887 MiB
Languages
Java 69.2%
PostScript 30.2%
Perl 0.3%
Gradle 0.2%