private boolean filterMessage()

in chatterbox-imap/chatterbox-imap-impl/src/main/java/org/apache/tomee/chatterbox/imap/adapter/ImapResourceAdapter.java [423:433]


        private boolean filterMessage(final Message message, final Method m) {
            try {
                final String messageBody = message.getContent().toString();

                return !m.isAnnotationPresent(Body.class) || "".equals(m.getAnnotation(Body.class).value())
                        || templateMatches(m.getAnnotation(Body.class).value(), messageBody);

            } catch (IOException | MessagingException e) {
                return false;
            }
        }