Hi Claus Just to confirm the failure to remove the file from the /tmp/ folder *was* related to the removal of the file name headers (<removeHeaders pattern="CamelFile*" />). To work around this I change my pseudo configuration that shown below. In summary I just encapsulated the <removeheaders/>, smtp, etc into an <onCompletion onCompleteOnly="true"> block within the multicast route definition. I now get a completion email (without header metadata), while still maintaining the tmp file (localWorkDirectory=/tmp) is removed when the route / exchange has completed.
Many thanks for taking the time and guiding me back onto the right path. -- View this message in context: http://camel.465427.n5.nabble.com/FTP2-consumer-SFTP-using-localWorkDirectory-option-local-file-not-deleted-tp5759581p5759643.html Sent from the Camel - Users mailing list archive at Nabble.com.
