Hi Reddy,
You need a multi mapping here. Message mapping will not work here as file content can be blank. Thus you need a java mapping here. The mapping will produce mesg1 in case there is some file content or the mapping else will produce standard email body for msg2. ASMA for filename will be included in the mapping itself.
Regards
Anupam