De-duplicate linked images via emails

(Dean Taylor) #1

When receiving post content via incoming email a new image is downloaded each time and stored.

Steps to reproduce

  • Setup email to be received by group in a shared inbox
  • you receive an email from PayPal links their logo:
  • Discourse downloads said logo and keeps a copy.
  • Wait for micro-payments to roll in.
  • Lucky you now receive 1000 emails in a single day from PayPal.


  • a single copy of the logo to be stored on disk.


  • Lucky you, you now have 1000+ copies of their logo.

(Jeff Atwood) #2

Hmm I wonder if we should ignore images in staged emails. This makes it awfully hard for a support email with a screenshot to work, though… your thoughts @zogstrip?

(Sam Saffron) #3

Odd, the de-duplication really should be working for this, if not something is off (uploads are created and the uploads should be automatically de-duplicated). Not too keen of giving up on images here.