GUI: filter out \n when performing the raw IMAP search

REVIEW: 110680