on 12-23-2010 4:50 AM
I have set up a sender mail adapter to fetch the email with attachment from MS exchange mail server. The sender mail adapter can process the attachment well and convert it to XML format. Now I have a new requirement to determine if the email comes from a particular user. I can see the FROM field in the payload "MailMessage" But I don't know how to get the value of this field. Any idea on how to set up the message mapping? Thanks in advance.
Make use of this HEader field SHeaderFROM....ASMA of sender mail....can make a check on this field.
Regards,
Abhishek.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can even check it in the receiver determination.
Can i directly use this field in message mapping say UDF?
yes...check the field in Sender Channel...use a UDF to get the value of this header field....the ouput of this UDF should be the value of SHeaderFROM...then use it in your mapping as per the requirement.
abhishek salvi proposed a easy solution. Since SHeadTo is a standard field in Mail adapter. I just have to set up the context condition in receiver determination to stop the process. Thanks every1 who replied my post.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bai,
>> Now I have a new requirement to determine if the email comes from a particular user. I can see the FROM field in the payload "MailMessage" But I don't know how to get the value of this field.
I did not get your question properly, could you please elaborate.
Thanks,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Before the sender mail adapter processes the attachment in the email, it need to determine the email is actaully from the business user not someone else on server. Cuz everyone can send email to the email address the mail adapter connects to, that is why this security issue comes from.
Basically when you fetch a email with attachment, in Sxi_monitor, you can see two field in the payload, One is MailMessage and the other is MailAttachment-1. In the MailMessage, you can see all the emial header fields, such as From, To, Subject, Content etc. I need to check if the FROM field is email address we allowed. That is basic requirements. Let me knwo if you want me to explain it further.
Edited by: Bai Li on Dec 23, 2010 6:02 AM
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.