@Test public void testParse1() throws MessagingException, IOException { sut = new MessageContentExtractor(Collections.singletonList(BASIC_MARKER), null); Message msg = (Message) makeMultipart( true, makeContentPart("text/plain", false, " From: A\r\n\tFrom: B\r\n \t\t From: C\r\n\r\n From: D\r\nFrom: E")); String result = sut.extract(msg); context.assertIsSatisfied(); assertEquals("From: A\r\n\tFrom: B\r\n \t\t From: C\r\n\r\n From: D", result); }
public String extract(final Message message) throws MessagingException, IOException { return findAndExtract(message); }
MessageContentExtractor { public String extract(final Message message) throws MessagingException, IOException { return findAndExtract(message); } }
MessageContentExtractor { public String extract(final Message message) throws MessagingException, IOException { return findAndExtract(message); } MessageContentExtractor(final Collection<String> inReplyMarkersLiteral,
            final Collection<String> inReplyMarkersRegex); }
MessageContentExtractor { public String extract(final Message message) throws MessagingException, IOException { return findAndExtract(message); } MessageContentExtractor(final Collection<String> inReplyMarkersLiteral,
            final Collection<String> inReplyMarkersRegex); String extract(final Message message); }
MessageContentExtractor { public String extract(final Message message) throws MessagingException, IOException { return findAndExtract(message); } MessageContentExtractor(final Collection<String> inReplyMarkersLiteral,
            final Collection<String> inReplyMarkersRegex); String extract(final Message message);  }