add duplicate attachment detector
Merge branch 'origin/feature-attachments'