ommail: support v8 omod interface
ommail: small cleanup