1

Resolved

Solved: EnsureSessionState doesn't account for Update state, so deletes don't go through

description

// in Pop3Client, the EnsureSessionState code should be changed to:
 
    private bool EnsureSessionState(string command)
    {
        switch (command.Substring(0, 4).ToLower())
        {
            case "user":
            case "pass":
            case "apop":
                return (this.State == Pop3SessionState.Authorization);
            case "quit":
                return (this.State == Pop3SessionState.Update);
            default:
                return (this.State == Pop3SessionState.Transaction);
        }
    }

comments