configuring to get mailcore to compile, and adding hooks for sending