# Save an attachment automatically

**URL:** https://discourse.mozilla.org/t/save-an-attachment-automatically/6080
**Category:** Add-ons
**Created:** [December 18, 2015, 5:49pm UTC](https://discourse.mozilla.org/t/save-an-attachment-automatically/6080 "2015-12-18T17:49:38Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![solmardiotozou](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/solmardiotozou/32/21412_2.png) [@solmardiotozou](https://discourse.mozilla.org/u/solmardiotozou)
#### Post date: [December 18, 2015, 5:49pm UTC](https://discourse.mozilla.org/t/save-an-attachment-automatically/6080/1 "2015-12-18T17:49:39Z")

</div>

I want to do this, but I don’t know if it’s possible.  
When I receive an email with an attachment, i want to save the attachment in a specific folder, even If I don’t read the email before. It’s possible to do?

Best regards from Lima, Perú  
Merry Xmas

---

<div class="post-metadata">

### Author: ![emmanuel\_sellier](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/emmanuel_sellier/32/3349_2.png) [@emmanuel\_sellier](https://discourse.mozilla.org/u/emmanuel_sellier)
#### Post date: [December 18, 2015, 5:57pm UTC](https://discourse.mozilla.org/t/save-an-attachment-automatically/6080/2 "2015-12-18T17:57:51Z")

</div>

Hi,

If you intend to use it with a gmail account you may use scripting :  
[https://developers.google.com/apps-script/reference/gmail/](https://developers.google.com/apps-script/reference/gmail/) [https://developers.google.com/apps-script/reference/gmail/](https://developers.google.com/apps-script/reference/gmail/)

Depends if you need it for your own usage or to propose this as an extension or web service.

Emmanuel

---

<div class="post-metadata">

### Author: ![solmardiotozou](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/solmardiotozou/32/21412_2.png) [@solmardiotozou](https://discourse.mozilla.org/u/solmardiotozou)
#### Post date: [December 18, 2015, 6:57pm UTC](https://discourse.mozilla.org/t/save-an-attachment-automatically/6080/3 "2015-12-18T18:57:45Z")

</div>

Thanks for answering. It was my mistake, because I don’t explaned well enought. I want to do it with Thunderbird, maybe with an addon or something like that, and not only with gmail accounts. I hope I explained better now.

Regards from Lima, Perú

---

<div class="post-metadata">

### Author: ![jorgev](https://avatars.discourse-cdn.com/v4/letter/j/71c47a/32.png) [@jorgev](https://discourse.mozilla.org/u/jorgev)
#### Post date: [December 22, 2015, 8:56pm UTC](https://discourse.mozilla.org/t/save-an-attachment-automatically/6080/4 "2015-12-22T20:56:17Z")

</div>

It certainly sounds possible with an extension.
