on 07-09-2007 11:57 AM
Hi Friends ,
I am reading an Mail attachement and sending to R3 using PaloadSwapBean and MessageTransformBean .
I used to get attachement as .txt file , name like Ex10185.txt in one mail . In another mail Ex10186.txt like that.
If only thoses file comes then no problem .
<b> IF some times along with .txt file some .html files are coming by that time my Mail Adapter incorretly reading the .html file.</b>
<b> Please tell me how to skip those kind of attachements and read only .txt file</b>
Expecting your answers asap.
Best Regards.,
V.Rangarajan
You can simply use the PayloadSwapBean with
swap.keyName = Content-Type
swap.keyValue = .txt
The keyValue can be any substring of the content type (but wildcards are not allowed)
Regards
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
one way:
you can write a simple adapter module that will
just check the attachments and remove all non TXT
Regards,
michal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.