Using the script that you can find on Github from Andreas Hochsteger, you can automatically save attachments that arrive via email in your GMail account in a selected Drive folder.
- Choose what kind of files
- Choose the destination folder
- Rename the file (or not)
- Archive the email or not
- Export the emailthread as pdf
You can find the script here :