# De-duplicate linked images via emails

**URL:** https://meta.discourse.org/t/de-duplicate-linked-images-via-emails/42645
**Category:** Feature
**Created:** [2016年四月16日 00:54 UTC](https://meta.discourse.org/t/de-duplicate-linked-images-via-emails/42645 "2016-04-16T00:54:20Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![DeanMarkTaylor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deanmarktaylor/32/102462_2.png) [@DeanMarkTaylor](https://meta.discourse.org/u/DeanMarkTaylor)
#### Post date: [2016年四月16日 00:54 UTC](https://meta.discourse.org/t/de-duplicate-linked-images-via-emails/42645/1 "2016-04-16T00:54:20Z")

</div>

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: `http://images.paypal.com/en_US/i/logo/logo_emailheader_113wx46h.gif`
- 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.

### Expected

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

### Actual

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

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2016年四月16日 02:06 UTC](https://meta.discourse.org/t/de-duplicate-linked-images-via-emails/42645/2 "2016-04-16T02:06:05Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2016年四月16日 10:48 UTC](https://meta.discourse.org/t/de-duplicate-linked-images-via-emails/42645/3 "2016-04-16T10:48:31Z")

</div>

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.
