I know I can set the HeaderFilterStrategy for a particular end-point, but...
How does one override the DefaultHeaderFilterStrategy with a custom
strategy that will apply to all routes?
We are using Camel's Servlet Listener.
Can we supply something in the configuration (documented here) to replace
I see, i missed the formatting part and skipped right to the attachments.
In this case, I would try something like was sugggested here:
https://stackoverflow.com/questions/56577633/apache-camel-save-email-to-file-eml-using-routes
e.g (tested locally)
public void configure() throws Exception {
No. The body is not stored as it come. But text only. Without formatting (e.g.
RTF).
I simply want to backup the original Email as eml in case of error.
-Ursprüngliche Nachricht-
Von: Condello, Giovanni
Gesendet: Donnerstag, 19. September 2019 15:47
An: users@camel.apache.org
Betreff:
Hi,
My guess is that the file component doesn't support the attachments API (as
noted here:
https://camel.apache.org/components/latest/mail-component.html#_sending_mail_with_attachment_sample
).
One trick could be to route your deadLetterChannel to a direct route, and
from there use:
1. the file
Thanks. Will look at it.
-Ursprüngliche Nachricht-
Von: Condello, Giovanni
Gesendet: Donnerstag, 19. September 2019 13:55
An: users@camel.apache.org
Betreff: Re: own endpoint exmaple?
A couple of suggestions from someone that had to build a custom component:
- Use the archetype to gene
A couple of suggestions from someone that had to build a custom component:
- Use the archetype to generate a skelton, then modify the pom to integrate
it back into your own structure. We did it and we found the process quite
straightforward.
- Find an existing camel component that works in a simil
Simply hide a complex monitoring (db-entries, log, etc.) with a simple call
like "file://" "log:".
I could use a bean or processor and I actually I had, but I thought its
simplier so. For the caller (routedef) and for clean code.
-Ursprüngliche Nachricht-
Von: Omar Al-Safi
Gesendet:
Hi Thomas,
May I know what do you want to achieve here? The context of your problem
can help us to know how can you move forward without much complexity
involved.
Regards,
Omar
On Thu, Sep 19, 2019, 13:20 wrote:
> "Scaffolding your component through maven archetype"
>
> I think at the moment I
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)).useO
"Scaffolding your component through maven archetype"
I think at the moment I didn’t know much about it.
I really didn’t want to blow up pom only for a little endpoint. Or did I not
get it?
-Ursprüngliche Nachricht-
Von: Alex Dettinger
Gesendet: Donnerstag, 19. September 2019 10:20
A
Hi Thomas,
Did you figured it out ?
From the code, it's hard to see what the issue could be: Do you extend
DefaultComponent ? Do you call setProperties() in createEndpoint() ? and so
on...
If you have not used an archetype yet, then I would direct you back to
Omar Al-Safi suggestion: Scaffol
11 matches
Mail list logo