Hi,
please have a look into the Online Help (Help -> Online Help) and search for following term "file inbound". In this documentation you get some examples how-to work with a "Format Control Document" to transfer flat files into a XML structure.
In this Online help you can also find information about the email atom and the object structure of a B1 SO.
Best regards
Bastian