updated repost logic for mailer