Skip to Content
0

Dynamic Receiver Determination and read attachment

May 16, 2017 at 05:29 AM

49

avatar image
Former Member

I'm doing a mail to file scenario.

I need to get the mail from mail server and do some validations based on subject and attachment. If it's valid, then need to place the file in NFS.

If the validation fails, need to send a notification mail to sender.

I have configured the sender channel to pick mail from mail server, with mail package option.Extended receiver determination is used to determine receiver based on the payload.

Issue : When I place the file in NFS, only the main payload is placed instead of the attachment.

I can't swap the attachment in mail sender adapter, if I do so main payload will not be passed to the mapping and cannot determine the receiver. Is there any way to get the attachment and pass it to the receiver file channel without going for swapbean option?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Mark Dihiansan May 16, 2017 at 05:37 AM
2

Hi,

Swapping in receiver channel does not work?

Regards,

Mark

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member May 16, 2017 at 06:56 AM
1

other option is after determine the receiver , swap in mapping.

Regards

GB

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi Ganandeep,

Once it reaches mapping, only main payload is available.

can you let me know how to swap in mapping?

0

Hi Aravind!

Just read attachment as byte array with java mapping and send it to output stream as output payload.

Regards, Evgeniy.

0