Email detection of text considering subdirs