on feature #4011, improving support of MSG file format
adding test cases