Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Filter emails based on "From" of mail package

My sender mail adapter is picking up all emails from an email account and processing the file attachment - This is working fine.

The problem is that it processes everything sent to this email account even junk mails - resulting in XI alerts. How can I ignore the junk emails and only process emails sent from a certain source???

I see that we have "use mail package" and when I check this I get two payloads when I look in the monitor:

PAYLOAD 1: MailMessage:

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>

- <!-- Inbound Message


- <xim:Mail xmlns:xim="" encoding="base64">

<Subject>Test - use mail package</Subject>

<From>"Wood, Lynn" email address removed</From>

<To>"bcdinvoices, sapxd1" email address removed</To>








PAYLOAD 2: MailAttachment-1 - which is my attachment with data which I process

<?xml version="1.0" encoding="utf-8" ?>

- <ns:MT_BCD_INVOICES xmlns:ns="urn://">



















Can I pick out <From>"Wood, Lynn" email address removed</From>

To check it is the correct FROM - ie. only process emails from a certain sender????

Is this possible??? And how do I do it???

I already use payloadSwapBean and messageTransformBean to swap the attachment for payload and to format the file.

Please do not send me endless links to anything email related !

Former Member
Not what you were looking for? View more on this topic or Ask a question