Hi Igor,
you can use pub.file:writeFile to write to a file by passing the email node as input data and just give filename.msg as the filename.
Remember to adjust WmPublic/config/fileAccessControl.cnf and reload WmPublic package.
Or you can try to convert the email into a XML structure and write this structure to disk.
pub.xml: documentToXMLString will be helping here.
Sample for a possible XML structure:
<?xml version="1.0"?>
<Mail>
<to>xxxx</to>
<subject>xxx</subject>
<from>xxx</from>
<mailhost>xxxx</mailhost>
<body>xxxx</body>
<status>xxx</status>
</Mail>
Regards,
Holger
#webMethods#Integration-Server-and-ESB