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="http://sap.com/xi/XI/Mail/30" encoding="base64">
  <Subject>Test - use mail package</Subject>
  <From>"Wood, Lynn" email address removed</From>
  <To>"bcdinvoices, sapxd1" email address removed</To>
  <Content_Type>multipart/alternative;boundary="_000_91543CF4B231AE46B0B72867A9775AFE75E2BDB4B0SFLDMIEX001fe_"</Content_Type>
  <Date>2008-10-15T13:04:05Z</Date>
  <Message_ID><91543CF4B231AE46B0B72867A9775AFE75E2BDB4B0></Message_ID>
  <Content>LS1fMDAwXzkxNTQzQ0Y0QjIzMUFFNDZCMEI3Mjg2N0E5Nzc1QUZFNzVFMkJEQjRCMFNGTERNSUVY
etc........
RTc1RTJCREI0QjBTRkxETUlFWDAwMWZlXy0tDQo=</Content>
  </xim:Mail>
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://federalmogul.com/BCDTRAVEL/FINGLOBCD001/00">
- <RECORDSET>
  <COST_CENTRE>90200955</COST_CENTRE>
  <EMPLOYEE_ID>66230</EMPLOYEE_ID>
  <PRODUCT_GROUP>VSP</PRODUCT_GROUP>
  <COMP_CODE>FEDERAL MOGUL FRICTION</COMP_CODE>
  <BCD_ACCOUNT>3301419</BCD_ACCOUNT>
  <INVOICE_DATE>20080811</INVOICE_DATE>
  <TRAVELER_NAME>PIERREY</TRAVELER_NAME>
  <TRAVELER_FIRST_NAME>JEAN FRANCOIS</TRAVELER_FIRST_NAME>
  <INVOICE_NO>8212654</INVOICE_NO>
  <AMOUNT_EXCL_VAT>15.00</AMOUNT_EXCL_VAT>
  <CURRENCY1>EUR</CURRENCY1>
  <AMOUNT_VAT>0.00</AMOUNT_VAT>
  <CURRENCY2>EUR</CURRENCY2>
  <AMOUNT_DOC_CURRENCY>15.00</AMOUNT_DOC_CURRENCY>
  <CURRENCY3>EUR</CURRENCY3>
  </RECORDSET>
  </ns:MT_BCD_INVOICES>
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 !

Yes this is pretty much what I thought to do - my problem is what do I check in the UDF.  I need to get the "From" field into the header.  I see that you can do it if you check "Use Adapter Specific Message Attributes" and "Variable Transport Binding" then you have available in the header SHeaderFROM which you can then get in the mapping.  But we are on SP19 and we do not have "Variable Transport Binding" on the Sender Mail adapter - nor an advanced tab page - only an advanced mode check box and additional parameters.
So not sure how I can get the "From" field into mapping???  Any ideas anyone?

Similar Messages

  • How can I find my email in Apple Mail from before my company switched hosting providers?  People with Outlook have all of their old and new emails.  My old emails have vanished from Apple Mail.

    How can I find my email in Apple Mail from before my company switched hosting providers?  People with Outlook in my company have all of their old and new emails.  My old emails have vanished from my Apple Mailbox on my macbook and other Apple devices.  I do not have my mail backed up in time machine recently nor did I export my emailbox recently.  Any ideas?

    Try looking in your User folder.
    Either hold down the option key while using the Finder “Go To Folder” command and select your user Library in your home folder or use the Finder “Go To Folder” command and enter ~/Library/Mail/V2
    If you prefer to make your User library permanently visible, use the Terminal command found below.
    Show User Library
    You might want to bookmark the command. I have to use it again after every update. I have also been informed that if you drag the user library to Finder it will remain visible.

  • Rest based webservices from plsql procedures/packages

    Guyz.
    Please let me know How to create Rest based webservices in jdeveloper tool from plsql procedures/packages.
    Im very much in need
    Thanks,

    Hi User ,
    Welcome to OTN !!
    You can refer to these links and figure out -
    http://docs.oracle.com/cd/E16162_01/user.1112/e17455/dev_web_services.htm#CHDJIFAE
    http://theblasfrompas.blogspot.com/2011/03/developing-restful-web-services-from.html
    Also for calling pl/sql packages from Java , use soemthing like this - http://www.coderanch.com/t/302171/JDBC/databases/execute-PL-SQL-program-Java

  • In email when switching from 1 mail to another ff "not responding" how to fix.

    when checking email then switch to another ff locks up and on top it says ff "NOT RESPONDING" Then it turns almost white. Sometimes it will flash brightly and then start working, sometimes needs to restart. This all started when ff updated itself to version26. No problem in ver 25. Writing this I am using "Ice Dragon 26, which is built from ff, but have no trouble like I do with ff and ff has been my favorite. What to do?
    "SHOULD I REDO THIS USING FIRE FOX"

    Yahoo! mail? Many, many users have discovered all kinds of problems and glitches with Yahoo! mail in Firefox when using an old bookmark saved before Yahoo!'s recent server changes.
    I suggest clearing your Yahoo cookies and entering through the main page to get a better address for your current mail server.
    To remove your Yahoo cookies -- save any pending work first -- call up the Cookies dialog while viewing any page on yahoo.com (or your Yahoo site). You can use either:
    * right-click the page > View Page Info > Security > "View Cookies"
    * Tools menu > Page Info > Security > "View Cookies"
    In the dialog that opens, you can remove the site's cookies individually.
    Then go to one of these Yahoo addresses and click on login or mail from there:
    * Yahoo home page: https://www.yahoo.com/
    * My Yahoo page: https://my.yahoo.com/
    * General mail redirect: https://mail.yahoo.com/
    * AT&T users: http://att.yahoo.com/
    * Other country sites (not on .com): the main Yahoo page for your country
    Does that help?

  • Blank Emails with Attachments from Apple Mail if received into Gmail IMAP.

    Hi
    I have noticed that if I receive an email with an attachment from someone using Apple Mail to my Gmail IMAP account (in Apple Mail) the body of the text is blank. I get the attachment but the only way to read the body of the email is to show the Raw Source. Has anyone else had the same problem and does anyone have a solution?

    Not me and I use gmail's IMAP service with Apple Mail frequently. You're probably better off posting this question on google's gmail forum which you can get to via the help section on the gmail.com web site.

  • How do I restore email and drafts from Apple Mail in Time Machine after account was deleted.

    My Apple Mail email account was deleted by a support person and I lost several hundred emails and close to 1100 drafts that I desperately need. I have been using an external drive for backing up in Time Machine. 
    I do not know how to get my emails and drafts out of Time Machine and onto my Apple drive.
    Any help would be appreciated  HUGELY!

    Command-R to the rescue.
    Just hold down Command-R during startup and Lion Recovery springs into action. It lets you choose from common utilities: You can run Disk Utility to check or repair your hard drive, erase your hard drive and reinstall a fresh copy of Lion, or restore your Mac from a Time Machine backup. You can even use Safari to get help from Apple Support online. And if Lion Recovery encounters problems, it will automatically connect to Apple over the Internet.
    When boot into Recovery and select item 1, you will be given a choice of a point to recover from.

  • Email not downloading from server - mail activity says there is

    Hi all - I have an email account with mail on the server, which i can see on by logging in through a web interface.
    However, retrieving new mail yields no messages, and a mysterious progress bar in the Mail activity window that says it's downloading "280 of 280 messages" which looks like this:
    http://localhostr.com/files/d2e3f0/odd.png
    It comes up and then goes away within a second or to, but now messages come through.
    Any ideas?
    Thanks

    Thanks for the suggestion of using system preferences - could you please give me a little more information on how to do that?
    I went into System preferences - network - advanced then clicked on the DNS tab where i saw 2 window (DNA and SEARCH DOMAINS). If i try to past the smpt in there (in the form smtpout.xxxxxxx.net) it simply pastes this: .eceee.e
    If I try the same thing into the other window (SEARCH DOMAINS) it pastes just fine.
    • A development •
    When I control-click and select "get account info" the panel that appears shows all 308 messages as being on my server, but they say SENDER UNKNOWN and NO SUBJECT.
    Here is a screengrab:
    http://localhostr.com/files/d4298e/Screenshot+2010-05-13+at08.30.122.png
    Could this be a clue?

  • How can I export email addresses from apple mail?

    How can I export email addresses from Apple Mail?
    Just to be CRISTAL CLEAR please don't reply with export instructions from the address book.....not interested in this.
    I have customers that fill-out a request form online, then the data is sent to our database on our server, and another copy is sent to my email account. The server database got corrupted and is now lost. The only data left are in my email app called APPLE MAIL. I have created Filtered Folders so the data is just in one Folder, not mixed with all other emails. Is there a way to export the email names & addresses from APPLE  MAIL to a CVS file or Excel file?
    Again this is not a question related to Apple Address Book. This is ONLY for Apple MAIL exporting!
    Thanks

    There is a collection of AppleScripts called Mail Scripts you can download at this link.
    http://homepage.mac.com/aamann/Mail_Scripts.html
    The script to use from the collection of scripts is Add Addresses (Mail) which adds addresses found in the selected messages (in the header fields "From", "To", "Cc", and "Bcc") to the Address Book. This is much more flexible than the "Add Sender to Address Book" available in Mail and provides a convenient way for creating mailing lists.

  • Email disappeared from Mac Mail.

    Hello. Email has disappeared from Mac Mail. Running last updated Mavericks. I went back in the time machine settings to revert to the day before the mail disappeared, and each time I go in there, I can see the mail showing up. Except, when I go to revert, nothing transfers back into the account. Any advice on what is going on and how to fix it? Years of mail are now "gone."

    Okay, there is definitely an error message coming up in the log. I only selected a few messages from 2008 to restore. I selected just one of the error log messages I received (essentially one for each email it tried to restore). Thanks for all your help. As an aside, if it helps you to respond, I've just started a computer science degree, so I'm starting to feel my way around this stuff, but have a good cursory understanding. Not to say that your directions aren't just succinct and perfectly laid out!
    9/23/14 7:16:07.421 PM Mail[3178]: *** Assertion failure in -[DateCell _initDateFormatter], /SourceCache/Mail/Mail-1878.6/Mail/Mail/MessageList/RowUI/DateCell.m:475
    DateCell requires its date formatter to have 10.4 behavior
        0   MailCore                            0x00007fff89ad08bc -[MCAssertionHandler _handleFailureWithPreamble:description:arguments:] + 141
        1   MailCore                            0x00007fff89ad072d -[MCAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 215
        2   Mail                                0x0000000100f1fe0f Mail + 97807
        3   Mail                                0x000000010104b51b Mail + 1324315
        4   AppKit                              0x00007fff925bd9f0 -[NSTextFieldCell init] + 31
        5   Mail                                0x00000001010fdc23 Mail + 2055203
        6   Mail                                0x00000001010fe096 Mail + 2056342
        7   Foundation                          0x00007fff8c017dbe -[NSObject(NSKeyValueCoding) setValue:forKey:] + 389
        8   AppKit                              0x00007fff925e2f0d -[NSObjectParameterBinder _updateObject:observedController:observedKeyPath:context:] + 1298
        9   AppKit                              0x00007fff925d9f08 -[NSObject(NSKeyValueBindingCreation) bind:toObject:withKeyPath:options:] + 652
        10  Mail                                0x00000001010f2e21 Mail + 2010657
        11  Mail                                0x00000001010f3cba Mail + 2014394
        12  Mail                                0x0000000101139bfb Mail + 2300923
        13  Mail                                0x000000010113aaff Mail + 2304767
        14  Mail                                0x000000010113af62 Mail + 2305890
        15  Foundation                          0x00007fff8c035784 __NSFireTimer + 96
        16  CoreFoundation                      0x00007fff880973e4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20
        17  CoreFoundation                      0x00007fff88096f1f __CFRunLoopDoTimer + 1151
        18  CoreFoundation                      0x00007fff881085aa __CFRunLoopDoTimers + 298
        19  CoreFoundation                      0x00007fff880526a5 __CFRunLoopRun + 1525
        20  CoreFoundation                      0x00007fff88051e75 CFRunLoopRunSpecific + 309
        21  HIToolbox                           0x00007fff8884ba0d RunCurrentEventLoopInMode + 226
        22  HIToolbox                           0x00007fff8884b7b7 ReceiveNextEventCommon + 479
        23  HIToolbox                           0x00007fff8884b5bc _BlockUntilNextEventMatchingListInModeWithFilter + 65
        24  AppKit                              0x00007fff9255124e _DPSNextEvent + 1434
        25  AppKit                              0x00007fff9255089b -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 122
        26  AppKit                              0x00007fff9254499c -[NSApplication run] + 553
        27  AppKit                              0x00007fff9252f783 NSApplicationMain + 940
        28  libdyld.dylib                       0x00007fff86fdd5fd start + 1

  • Q10 - how to filter emails?

    After a recent switch to the new Q10 it appears that all email filters that i had set up for my blackberry service have been disabled.
    Clearly, the ability to filter emails (newsletter, etc) from being forwarded to the bby is a key feature of the bby appeal, i am sure they would not eliminate this feature.
    However - how do I set it up/reactivate it?
    I have a standard corporate POP3 based email (no gmail, hotmail, etc)
    I have several email addresses
    I am using Vodafone in the UK
    thank you for your input and assistance.
    Solved!
    Go to Solution.

    HI this a major flaw, a step backwards really!
    There are 2 more features that seem to have disappeared (i) the possibility when answering to an email to leave out / erase the original message and (ii) you dont havethe choice any more between delting a message on the device only / from the mailbox.
    Therefore from a heavy email users' point of view, BB10 is "forward to the past"
    hope fully you are going to address theses issues.
    rgds
    Antoine

  • SMTP error from remote mail service

    I am receiving a error that states"SMTP error from remote mail service" This is my work e-mail that is a out look e-mail service--but was put on my laptop in mozilla. If I test send e-mails to my gmail, aol and the work e-mail the work e-mail goes through (on the mozilla) but I get the error report for the gmail and aol test.

    ''Matt [[#answer-672468|said]]''
    <blockquote>
    what is the complete error message please.
    </blockquote>
    Hi Matt--thank you for reaching out to assist--here is the full error message I receive when I attempt to send emails--
    SMTP error from remote mail server after end of data:
    host p3nlsmtpcp-v01.prod.phx3.gdg [72.167.191.78]:
    552 5.2.0 bT641p03m3RZ6FL01 :: CPANEL :: Message rejected for spam or virus content ::
    Please include this entire message when contacting support ::
    v=2.1 cv=Yecz5mhf c=1 sm=1 tr=0 p=dXr4a0FlAAAA:8 a=9P+wmFvZGoNcfX5LD2dIAQ==:117 a=9P+wmFvZGoNcfX5LD2dIAQ==:17 a=TZb1taSUAAAA:8 a=xSRs65CQCjkA:10 a=IkcTkHD0fZMA:10 a=o1OHuDzbAAAA:8 a=YNv0rlydsVwA:10 a=AK46IGkTethYI5b8t1AA:9 a=QEXdDO2ut3YA:10 a=RBqHpAr1aNgA:10 a=SZlYXZE0WA8A:10 a=POQKUN4lQn8A:10 a=5LQJebhDX5EA:10 a=lWHhIcKi20EA:10 a=AP_QpuyW5RgA:10 a=_ZmE1jEfA50A:10 a=fVc70mvjwYYA:10 a=BfRt8DTvoOQA:10 ::
    100.00

  • Switching from Windows Mail to either Mac Mail.app or Mac Outlook (help!)

    Hello,
    My wife has been using Windows since forever but I'll be getting her a new Mac next week. I've been using Macs since the Mac Plus so I'm comfortable with her making the switch. The one main question I have is about her email.
    I registered a domain for her a number of years ago (she uses POP3) and she uses that domain for her email. She currently uses the basic Windows Mail application (not Outlook). She has a large number of emails filed away into a ton of nested folders in Windows Mail.
    I'm debating if I should have her use the Mac's Mail app or if I should but Outlook for Mac for her (part of the Mac Office suite). A few questions:
    If I have her use the Mac's Mail app, is there a way for me to export all of her contacts and emails from Windows Mail (including the way all of her emails are organized into folders) and then import those into the Mac's Mail app? (and Contacts)
    Does the Mac's Mail app support a lot of folders, nested multiple levels deep? The last time I checked (a number of years ago) it seemed like nested folders to organize downloaded emails was an afterthought at that time.
    Any idea how I would go about exporting saved emails and contacts from Windows Mail and import them into either Mac Mail or Mac Outlook?
    Thanks!

    Mail allows for nested folders and complex rules for automatically filing items into these folders as they're downloaded to your local computer.
    Any switch in technology can be a little daunting and annoying at times, before you try transferring a lot of sensitive information let her use Mail.app for a week or so and get to know her way around and feel comfortable with the features, then make a decision on how to import old information.
    Outlook for mac is a large complex and expensive piece of software, there are other mail options available in the App store if Mail doesn't cut it.
    If she wants to try the new program and you don't want to disrupt your POP3 settings on that domain, try a google account.
    I'm not sure how Outlook is made available, but there are many Windows emulation programs if she cannot leave some programs behind.

  • Outbound Mail Adapter Mail Package

    Hi there,
    I have a problem in a XI-Scenario.
    There is an incoming mail with a CSV-File as an attatchemant.
    It s transformed by an itemfield-module into xml-soap.
    Then the message is mapped and end to a sap-hr via rfc.
    This is how far it works.
    my problem is, that i need the emailheaddata, and i dont know how to get it. The atribute 'use mail package' is activated. but how can i reach the information from the mail package in the mapping where i need the information about the sender?
    best regards
    Harald Cremer

    hi,
    if you won't be able to do it in amy other way try this:
    create an adapter module in which you will
    get the header data
    and put it into the dynamicconfiguration
    then you will be able to get it from your mapping
    easily
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Help with Mail Package

    Hi all,
    I have a interface PROXY - MAIL.
    I need to generate the attachment name dynamically, send an attachment and fill the body of email. I'm using Mail Package, according to note 748024.
    But I do not know how to fill the body of email and send attachment.Could someone help me?
    For the attachment name dynamically, I used the link: http://wiki.sdn.sap.com/wiki/display/SI/DynamicEmailAttachmentnameforReceivedMails

    Francis,
    Issue resolved.
    I didn't use the adapter module.
    I use the Mail Package and follow the links:
    /people/samuel.chandrasekaran2/blog/2008/10/06/xi-mail-adapter-dynamically-building-attachment-and-message-body-content-using-a-simple-udf
    send a mail with a body and attachment
    Thanks.

  • Mail does not create new emails based on the highlighted mailbox, but rather the receiving mailbox of whatever individual email happens to be highlighted. This was not the case prior to Lion. Is this a bug or an error on my part?

    Mail does not create new emails based on the highlighted mailbox, but rather according the receiving mailbox of whatever individual email happens to be highlighted. This was not the case prior to Lion. Is this a bug or an error on my part? (I do have the setting for creating new emails from the highlighted mailbox checked.)

    The questions about time was not only because of thinking about the Time Machine, but also possible impact on recognizing which messages remaining on a POP server (doesn't apply to IMAP) have been already downloaded. In the Mail folder, at its root level, in Mail 3.x there is a file named MessageUidsAlreadyDownloaded3 that should prevent duplicate downloading -- some servers may not communicate the best with respect to that, and the universal index must certainly be involved in updating that index file. If it corrupts, it can inhibit proper downloading. However, setting the account up in a New User Account and having the same problem does not point that way, unless your POP3 server is very different from most.
    That universal index is also typically involved when messages are meant to be moved from the Inbox to another mailbox -- in Mail 3.x the message does not move, but rather is copied, and then erased from the origin mailbox. That requires updating the Envelope Index to keep track of where the message is, and should keep track of where it is supposed to have been removed after the "Move".
    Ernie

Maybe you are looking for