Fix search problem for gmail server.