Donate Share

Koolwired.Imap

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

Magic Numbers in ImapAuthenticate.cs

You are viewing a single message from this topic. View all messages.

  1. 2009-07-08 09:19:26 UTC
    Please refer to src\Koolwired.Imap\ImapAuthenticate.cs, line #195:
    if (result.StartsWith("* OK") || result.Substring(7, 2) == "OK")
    7 is the length of "kw1234 " prefix (tag), and I think it should have a meaningful reference.
    2 is the length of "OK", which is fine, but you may consider writing "OK".Length as well.
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.