cancel
Showing results for 
Search instead for 
Did you mean: 

Transfer attachments from mails to folder

Former Member
0 Kudos

Hello,

I'm looking for the way to collect the attachments files from the mails in specific folder in mail inbox (Exchange server)

And transfer the attachment to folder in the server.

If is possible I donu2019t want to make any mapping, only collect the files from the attachment and drop them in the server?

Have any idea how do it?

Elad

Accepted Solutions (1)

Accepted Solutions (1)

former_member181985
Active Contributor
0 Kudos

Use PayloadSwap bean either in the sender mail adapter or in the receiver file adapter.

VijayKonam
Active Contributor
0 Kudos

You can get only one attachment by using payload swap bean. If you want all of them, you have to write adapter module, mapping and all the stuff.

VJ

Former Member
0 Kudos

What do you mean in the sentence "If you want all of them"?

udo_martens
Active Contributor
0 Kudos

>What do you mean in the sentence "If you want all of them"?

If you want attachment AND payload..

Former Member
0 Kudos

OK,

I tried to take only the attachment.

I tried to implement this weblog with out success

/people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step

My questions are:

1. for scenario like that I need to create something in the repository?

2. what I need to type in "default interface namespace" and in "default interface name"?

Elad

udo_martens
Active Contributor
0 Kudos

Hi Elad,

>1. for scenario like that I need to create something in the repository?

Yes, data types, msg types, interfaces, may be mappings,

>2. what I need to type in "default interface namespace" and in "default interface name"?

The interface name and namespace of your outbound interface

Regards,

Udo

Former Member
0 Kudos

But I don't want to make any mapping.

I want to take the attachment file and transfer it to folder as is with out any changing.

What I need to write in the data and message types?

For which reasons I need to make mapping?

Elad

udo_martens
Active Contributor
0 Kudos

Hi Elad,

>What I need to write in the data and message types?

Dummy types are enough (just one field type string)

>For which reasons I need to make mapping?

Its only a option, you dont need it

Regards,

Udo

Answers (0)