nnimap.el (nnimap-open-connection-1): Use tcp-keealive if possible.