Download patch from here

sudo /usr/bin/checkgmail -update
sudo patch /usr/bin/checkgmail checkgmail.patch
checkgmail