When something like that gets edited, the server (e.g. Lemmy) sends out an Update message. That contains the whole post/comment but with the slightly updated content. This mail system just delivers it the same anyway, so we end up with some duplicate mail. Not quite sure how/if Updates should be handled…