Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#547 IMAP command continuation not supported for LOGIN command

v4.3.4
open
nobody
5
2013-11-13
2013-11-13
skf23
No

When connecting to DavMail via IMAP, if the command sent by the client ends with {x} (x being a number), the server should reply with a command continuation request. While this works as expected when sending AUTHENTICATE LOGIN from the client, some clients use LOGIN <user> <pass> or LOGIN <user> {x} without AUTHENTICATE.
The first form works, since that's a complete command. However, the second form will return an "Invalid Credentials" error, since DavMail assumes {x} is the password and uses it to try to access Exchange.

Discussion

  • skf23
    skf23
    2013-11-13

    Oops, formatting ate part of this sentence:
    While this works as expected when sending AUTHENTICATE LOGIN from the client, some clients use LOGIN user pass or LOGIN user {x} without AUTHENTICATE.

     
  • skf23
    skf23
    2013-11-13

    After trying to fiddle around with the client settings I decided to implement a solution in DavMail myself. It's not the cleanest way to implement this (for starters, octet count is not taken into account) but it gets the job done.
    The diff for src/java/davmail/ImapConnection.java is attached.

     
    Attachments