Web Applications Stack Exchange is a question and answer site for power users of web applications. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way do download every attachment within a label? I want every PDF invoice I get to be put in my file system. So I figured I'd need Google Drive. But I only did find some Chrome extensions that make it easier to save them manually.

Any ideas?

share|improve this question

migrated from superuser.com Sep 28 '12 at 17:57

This question came from our site for computer enthusiasts and power users.

You'll not be able to do that with the Gmail web client. Filters there can only act on messages by responding to them, applying labels, etc. You'll need a third-party tool like a desktop e-mail client, but even then you'll probably need another tool added to that. – Al E. Sep 28 '12 at 14:04

Try Zapier. Looks like this Zap will let you save attachments to Google Drive based on a specific label you label your emails with.

enter image description here

share|improve this answer

You can install the Send to Google Drive script and it will automatically download all Gmail attachments that have the label GoogleDrive to your Drive folder.

Assuming that you are logged in to your Google account, create a copy of this sheet in your Google Drive. Open the sheet and you should see a new Gmail menu – click Initialize and grant the necessary permissions. Next go the Gmail menu again and select Run.

The script runs in the background and will watch your "GoogleDrive" label for any new messages to process.

share|improve this answer
FYI the google sheet now points to a freemium chrome extension. That blog post links to the relevant google apps script here. As a side note, labnol.org has been a great resource. Thanks Amit! – Jay Jan 20 at 20:51

Old discussion, but you can use Archiver for Gmail setting to pdf the only extension to be moved, and 0 the minimum size of the attachments.

share|improve this answer

I noticed the other answers describe how to do this to Google Drive, but you said you wanted them downloaded to your (I presume local) file system.

Check the description here for a detailed guide to using Thunderbird for this purpose.

With a simple modification, you can download only the attachments you want (in Step 3, just choose the appropriate folder/label or other subset).


Since writing the above, I have discovered a much simpler & easier to use solution. The tool Mail Attachment Downloader from GearMage does exactly what you requested and also provides a great deal of flexibility. I've started using it myself and I am very pleased with the results. It also works with Yahoo, Hotmail and almost any other mail server that supports POP3 or IMAP.

I am adding the following in case you decide to go with my pre-edit answer, so that all parts of this answer can "stand on their own":

  1. Download and install Thunderbird
  2. To Thunderbird add the AttachmentExtractor extension from here
  3. Once it's been added you can right-click and choose "Extract Selected Attachments to..." from the menu

Want more detailed instructions? You can try that link above.

Personally, I now recommend using the standalone, dedicated tool by GearMage. Good luck.

share|improve this answer

protected by Community Feb 21 '14 at 17:27

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?