I need to write a single function which will take multiple eml files ( may be from a single filesystem folder ) and convert them to a single PST file.
Is it possibl
You can find the specifications to the pst file format here. But I guess you would spend some time putting it all together to create a eml->pst parser yourself. But it should be possible.