Avoid duplicates when adding emails to folders