Save Gmail Files to Google Drive

The Google Script will save file attachments from Gmail threads marked with a particular label to a specific folder in Google Drive. It takes the last email message in a thread and saves the first attachment to Drive. Credit: S. Dolidze

Also see: Save Gmail Attachments to Google Drive