Search paren

Steves IMAP fix. Based on the junit4 pull request (freenet/plugin-Freemail-staging#13), so please pull that first