Skip to Content
author's profile photo
Former Member

Email sender cc: how to work on messages with different XI attachment names

I am currently facing the following problem:

I have to integrate a scenario using email as communication protocol (both in and outbound).

On the outbound way I know what I am getting, so this is no problem.

On the inbound way though I am facing one huge problem:

I am using a module that needs the source attachment name to do its job.

But as I am receiving emails, this source attachment name can be "MailMessage" if someone sends the content inlined or "MailAttachment-1" if someone sends the content attached.

As I am using one channel to poll a mailbox where basically both these situations can occur, I am looking for a means to use either MailMessage OR MailAttachment-1, depending on what is present.

So far I only know of ways to hard code the source attachment which will cause the cc to fail forever if a wrong message hits the inbox.

I have thought of a workaround, polling the messages from the mailbox without using any module chain, sending them to a file receiver and picking them up again with a file sender that has "archive errorneous messages" set. But this does not look like a nice solution to me at all.

Any ideas how to solve that are highly welcomed!

Thanks and cheers!

Stefan

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    author's profile photo
    Former Member
    Posted on Mar 30, 2007 at 08:43 AM

    Hi Stefan,

    Try to have a look to my blog:

    /people/francesco.bersani/blog/2007/03/27/rename-attachment-adapter-module

    Hope this help

    Francesco

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Mar 30, 2007 at 09:40 AM

    Hi,

    See the below link

    Mail Attachement name with note - Look at this note: 960502

    /people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure

    /people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter - XI: HTML e-mails from the receiver mail adapter

    /people/rahul.nawale2/blog/2006/11/01/dynamically-sending-a-mail-to-the-po-creator-using-xslt-abap-mapping

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

    Regards

    Chilla

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Aug 23, 2007 at 06:02 PM

    Solved the issue by utilizing a module that creates a separate XI message for every MailAttachment or MailMessage it finds in an inbound email.

    Add comment
    10|10000 characters needed characters exceeded