Add check for uniqueness when adding mails.

Check by mbox + content-hash
Merge remote-tracking branch 'refs/remotes/kali/bug/4949_check_fdoc_uniqueness' into develop