add mailcore dependency script for travis