fixes bug in np #mailparser #refactoreme