Checkin example from mail-listener, essentially.
add rule file support
Add support for environment variables