How to skip all files other than .txt file in Mail Sender Attachemnt ?

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

Hi Michal,
               Thanks for your reply , Sorry! I am aware of how to write adapter module. Can you please tell me how to write adapter module ?
                  Is there any links available or Blogs ?
                 I am expecting your reply asap .
Best Regards.,
V.Rangarajan

Similar Messages

  • How to skip first TWO Lines of   .txt  file    using XSLT Mapping

    Hi Friends  ,
                              I have an .txt file in has the format as
                               <TEST>
                                4564564545
                                56456444566
                                56465
                                    How can i skip the first two Lines when i am writing the XSLT Mapping ?
                              That <TEST> and empty line shouldn't go the rfc  .
                             How can i skip and sent to rfc  using XSLT Mapping ?
    Best Regards .,
    V.Rangarajan

    you can avoid the empty lines in your File Content Conversion by defining offset.
    <i>Under Document Offset, specify the number of lines that are to be ignored at the beginning of the document.
    This enables you to skip comment lines or column names during processing. If you do not make an entry, the default value is zero lines.</i>
    ref: http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
    then the generated XML after FCC will not have the empty lines.

  • Will sync-ing iPad to new Macbook lose files other than music files?

    I bought my first Macbook (first Mac laptop, and first Mac in over a decade) a few months ago and have been a little reluctant to sync my iPad to it. Will I lose anything other than my iTunes files? e.g. Will my Pages files or iBooks or Kindle files disappear? What will happen to my apps? My hard drive crashed late last year and I have lost some things that I won't be getting back, so I just want to make sure that when I do sync I'm doing it with full knowledge of what's going to happen. (i.e. I can try emailing all of my Pages docs to myself first.)
    Thanks for any help you can give!

    Sync Your iOS Device with a New Computer Without Losing Data
    http://www.howtogeek.com/104298/sync-your-ios-device-with-a-new-computer-without -losing-data/
     Cheers, Tom

  • How to skip certain lines for a txt file and insert into array

    so here is my question:
    i had a file to read, and it requires to input into the array starting from a certain line
    example:
    4
    john 25 M
    mary 22 F
    lee 20 M
    faye 10 F
    faye john
    mary john
    mary faye
    i want to insert the friend list, starting 5th line into a 2d array, which is the int from first line +1.
    can someone help me with it?
    i believe there is a skip method and stuff..
    but just dont know how to use it
    may someone tell me how to do tat?

    the thing is i think that takes too long and it is not efficient..
    however...i just solved it with a better method
    Scanner in = new Scanner (reader);
    int size = Integer.parseInt(in.next());
    BufferedReader insert = new BufferedReader(new FileReader(new File(input)));
    String line = null;
    int count = 0;
    int startAtLineNo =size+1; // 0-based
    while ((line = insert.readLine()) != null) {
    if (count >= startAtLineNo) {
    /* do stuff */
    System.out.println(line);
    // else ignore
    count++;
    thanks anyways

  • When I open a photo with Preview, it opens all the photos I have viewed previously.  How can I prevent that, other than manually clearing the list after each time?

    When I open a photo with Preview, it opens all the photos I have viewed previously.  How can I prevent that, other than manually clearing the list after each time?

    Close the pictures before you quit Preview. Cmd-opt-q will close all windows and quit. cmd-opt-w will close all windows and not quit.
    Or, Disable automatically opening files that were left open in General System Preferences

  • How to read contents of more than 2 files.

    hi all
    help me.
    How to read contents of more than 2 files.
    For reading a file contents we uses normally FileInputStream
    For reading two file contents we uses normally SequenceInputStream
    But which class we have to use for reading contents of more than 2 files at a time
    thanks in advance.

    SequenceInputStream can be used for reading any number of input streams (not at once, but one after the other).
    This involves making an Enumeration that returns the input streams you want to read. Depending on what you want to do, it might be just as easy to read them one after another.
    Or consider making a Vector of your input streams and using its elements() method. Like this:(untested)Vector<InputStream> inVec = new Vector<InputStream>();
    inVec.add(new FileInputStream("foo.dat"));
    inVec.add(new FileInputStream("bar.dat"));
    inVec.add(new FileInputStream("baz.dat"));
    // later...
    SequenceInputStream in = new SequenceInputStream(inVec.elements());

  • How can I convert an xls file to a txt file

    I would like to know How I can convert an xls file to a txt file.

    Look for this on google.com:
    "Java Excel API"
    With that, it would be easy to convert an excel file to flat text.

  • How to search a special string in txt file and return it's position in txt file?

    How to search a special string in txt file and return it's position in txt file?

    I just posted a solution for a similar question here:  http://forums.ni.com/ni/board/message?board.id=170​&view=by_date_ascending&message.id=362699#M362699
    The top portion can search for the location of a string, while the bottom portion is to locate the position of a character.  Both can search for a character.
    The position of the character within the file is displayed in the indicator(s).
    R

  • How can i open a DOC or TXT file and insert the data into table?

    How can i open a DOC or TXT file and insert the data into table?
    I have a doc file . the doc include some columns and some rows.(for example 'ID,Name,Date,...').
    I'd like open DOC file and I'd like insert them into the table with same columns.
    Thanks.

    Use the SQL*Loader utility or the UTL_FILE package.

  • How to open all the pages of a file PDF in Photoshop?

    Hi,
    How to open all the pages of a file PDF in Photoshop?
    Or
    I need to know the amount of Pages in PDF.
    Example:
    >Set MyPhotoshop = CreateObject("Photoshop.PDFOpenOptions")
    Set MyOpenPref = CreateObject("Photoshop.PDFOpenOptions")
    sFileName = "C:\Temp\Myfile.pdf"
    >With MyOpenPref
    .AntiAlias = True
    .Mode = psOpenCMYK
    .Resolution = 72
    .BitsPerChannel = psDocument8Bits
    .CropPage = psBoundingBox
    .Page = 4
    .SuppressWarnings = True
    End With
    >MyPhotoshop.Open sFileName, MyOpenPref
    I need help.
    Thanks

    http://www.ps-scripts.com/bb/viewtopic.php?t=1882
    Have a look at this thread, the last entry has the full code and has everything you need there.
    The answer to knowing how many pages is, you don't need to know!
    You use SL code and no error and no page is opened. Thats the crux of the code.

  • No sound other than MIDI files

    it appears that only MIDI files will play on my system.  we have not updated anything in the last week and the sound just quit other than MIDI files.  we are running XP on a HP M7067c desk top.
    any help please!

    Hi confused1nca,
    It's possible that Windows Update installed some updates while you were sleeping
    You may want to reinstall your sound drivers or install an updated driver. Here is the latest audio driver for your PC from HP: http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=pv-29786-2&lc=en&dlc=en&cc=us&...
    See if installing that helps and let us know how it goes.
    ...an HP employee just trying to help where I can, but not speaking on behalf of HP.

  • I want to hide all layers other than one layer when I play swf at first.

    Hello. I am using Adobe Flash CS6 and AC2.
    Right now I am trying to hide all layers other than one layer. There are 3 layers on my fla file like this.
    Layer A
    Layer B
    Layer C
    I want to keep hiding  Layers B and C unless  I click a button that makes layer B and C visible.
    Layer A has a movie clip symbol, and it contains animation movie where a man  is running.
    And Layer B and C has a movie clip where people  are chasing the person who is running on Layer A.
    I mean, if I load swf file at first, there is only one person who is running, and when I click a button two people appears on a stage and they start to chase the person who is running on layer A.
    What kind of script should I use to make this setting? Please give me your advice.
    Thank you in advance.

    Here is a simplified version of the code, including the two lines needed to make them invisible at the start....
    b_mc._visible = false;
    c_mc._visible = false;
    b_btn.onRelease = function():Void{
              b_mc._visible = !b_mc._visible;
    c_btn.onRelease = function():Void{
             c_mc._visible = !c_mc._visible;
    What that version of the coding does is simply tell the object to acquire the opposite ( ! ) value of the current _visible property.
    Notice also that I have removed the "_root " references inm the code.  You should not make a habit of using it unnecessarily.  If the code is in the main timeline already (the _root), there is no need to target it, and doing so can lead to problems if you ever need to load this file into another.  If that code is not in the _root timeline then it is okay to use _root, though using "_parent " references can be safer for the same reason.
    The way you had the code written is not wrong, but it was excessive in that you do not have to test the condition twice like you did, if it is not true then it has to be false.... 
    if(c_mc._visible){ 
          c_mc._visible = false;
    } else {
          c_mc._visible = true;

  • I use My Time Capsule as a external hard drive, can I transfer files other than wirelessly?

    I use My Time Capsule as a external hard drive, can I transfer files other than wirelessly?

    will TC appear on My desk top?
    It will, if you do the following:
    Open Macintosh HD and locate the Time Capsule icon under the SHARED heading on the left side of he window.
    Click on the Time Capsule icon and a folder representing the drive will appear to the right
    Double click the folder and the drive icon will appear on the desktop

  • My hard disk crashed and I cannot find out how to "contact customer service" other than this forum.  The website seems to just take me in a circle. I need to de-activate a license but cannot access the software due to a crashed hard drive.  Please help.

    My hard disk crashed and I cannot find out how to "contact customer service" other than this forum.  The website seems to just take me in a circle. I need to de-activate a license but cannot access the software due to a crashed hard drive.  Please help.

    Hi Anthony ,
    Here is the link to connect with Adobe Chat Support.
    https://helpx.adobe.com/adobe-connect/kb/connect-chat-support.html
    Hope your query gets resolved .
    Regards
    Sukrit Dhingra

  • My ipad2 freezes when i try to delete a email that has a 78mb pdf attached. Is there any other way to delete this file other than through the email program?

    My ipad2 freezes when i try to delete a email that has a 78mb pdf file attatched. Is there any other way to delete this file other than the email program?

    If it's not MobileMe, use Safari to access the server directly and delet from there. If it is MobileMe, do the same thing but from your computer as the iPad Safari won't connect to MobileMe mail.

Maybe you are looking for