cancel
Showing results for 
Search instead for 
Did you mean: 

get attached file outof incoming mail

Former Member
0 Kudos

Hi,

I've created an interface (Mail2Rfc), in which file is attached to incoming mail message. my basic reference was /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step which demonstrate how to implement getting attached file content via adaptor module.

my issue:

the file name can be changed, therefore the file_name parameter (required by adaptor module) can not be hard coded.

how can i bypass the issue?

Please advise,

Uri

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

you can use swap-key = payload-name which is always MailAttachment-1

Former Member
0 Kudos

Hi,

10x for your replay. I tried to implement the solution using:

swap.keyValue = MailAttachment-1

swap.keyValue = attachment;filename="MailAttachment-1.xml"

and i got :

BaseRuntimeException: Content is not allowed in prolog

when i changed the attached file name to ="MailAttachment-1.xml --> interface works OK.

plz advise,

Regards,

Uri

stefan_grube
Active Contributor
0 Kudos

use only one entry for keyName and keyValue.

keyName = payload-name

keyValue = MailAttachment-1

Former Member
0 Kudos

Hi,

10x for your replay.

plz clarify:

what is the module configuration i have to use? which Parameters & Parameters Values?

currently i'm useing:

swap.keyName=Content-Disposition

swap.keyName=Content-Description

swap.keyValue=attachment;filename="MailAttachment-1.xml";

swap.keyValue=MailAttachment-1

I tried to use keyName = payload-name instead of other keyName values, and interface was failing.

Regards,

Uri

stefan_grube
Active Contributor
0 Kudos

what do you see in SXMB_MONI as attachmanet names and content type?

Former Member
0 Kudos

I'm using "Integrated Configuration", therefore - sxmb_moni can not be used.

any other clue?

Regards,

Uri

Answers (0)