email direction type is examined for each mail

previously all mails shared same direction type as the first mail