Segmenting emails for email marketing