Hi, I send an email with formatting, html or rtf and a pdf as attachment. But in the dead letter file there is only plain text. How can I save the orginal email in case of exception?
Code so far in configure(): errorHandler(deadLetterChannel(String.format("file://%s", EMAIL_DEADDIRECTORY)).useOriginalMessage()); from(("imap:// ...").routeId("EmailInput") .throwException(IllegalArgumentException.class, "test") .to("direct:emailin");