Set server state for type when fetching all
Set server state for type when fetching all

If oldClientState == oldServerState, then the state we've just received
MUST be newer so we can update the server state too.

fastmail-commit: b8f16d8b566e0bde5fce0f746ccf9e289c014e4b

fastmail/overture