added command to search for the mail that is nearest to a given mail