Skip to content

Unzip Gmail attachments #12

Open
Open
@oshliaer

Description

@oshliaer
function unzipGmail(){
  var message = GmailApp.getMessageById('15ea48eff1160e89');
  var blobs = message.getAttachments()[0].copyBlob();
  var data = Utilities.unzip(blobs);
  data.forEach(function(blob){
    DriveApp.createFile(blob);
  });
}

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions