Hi, I am using camel 2.9.0 version.
I have a route SMTP-->File. I am downloading the attachment from the mail setting the attachment content into the exchange body and setting the attachment filename in header "CamelFileName". exchange.getIn().setHeader("CamelFileNameOnly", filename); I sent 3 mails with different attachment and it processed all successfully, in output directory I am getting only one file which is of the first mail attachment. The problem is that for 2nd and 3rd message camel file name is not getting reflected to the file endpoint and it takes the filename of the first message. I tried with not setting the filename in the SMTP endpoint then file endpoint is generating a unique filename for each message and I am getting the desired output(3 files). But I want to store the file with the name of the attachment but it is not getting reflected in file component. Any help would be appreciated. Regards, Shadab ________________________________ *** This e-mail (and any attachments), is confidential and may be privileged. It may be read, copied and used only by intended recipients. Unauthorized access to this e-mail (or attachments) and disclosure or copying of its contents or any action taken in reliance on it is unlawful. Unintended recipients must notify the sender immediately by e-mail/phone & delete it from their system without making any copies or disclosing it to a third person.*** This e-mail (and any attachments), is confidential and may be privileged. It may be read, copied and used only by intended recipients. Unauthorized access to this e-mail (or attachments) and disclosure or copying of its contents or any action taken in reliance on it is unlawful. Unintended recipients must notify the sender immediately by e-mail/phone & delete it from their system without making any copies or disclosing it to a third person.