draft of mail parsing