case BODY:
return bodyContains(value, message, log);
case FULL:
return messageContains(value, message, log);
default:
throw new UnsupportedSearchException();
}
} catch (IOException e) {
throw new MailboxException("Unable to parse message", e);
} catch (MimeException e) {
throw new MailboxException("Unable to parse message", e);