Refactor and move mail parsing functions to their own module