Import mail messages recursively and save them to a SQL database.