Extract gz files from Gmail attachments

ProductivitySales EnablementDocument/FileMarketingUtilitiesRecipe ToolsDeveloper Tool

What it does

When someone receives an email with a gz attachment in Gmail, this automation downloads and uncompresses it using JavaScript. The extracted content is then ready for downstream systems or team members to access.

Who it's for

Engineering teams who need to extract gz files from emails without manual decompression.

How teams use this

Extract logs from compressed emails

Automatically decompress gz log files sent via email and store them in a shared location. The team gets immediate access to logs without manual extraction steps.

Route decompressed files to cloud storage

Extend this automation to send uncompressed files to a cloud storage service after extraction. Add a step that uploads the decompressed content to your storage system.

Process backups from external vendors

Use this automation to handle compressed backup files received from third-party vendors. Decompress and validate the backup contents automatically when emails arrive.

How it works

  1. Monitor for new emails. Watch for incoming emails in Gmail that contain gz file attachments so the automation can process them.
  2. Download each attachment. Download each gz attachment from Gmail so the File connector can pass it to the decompression step.
  3. Uncompress with JavaScript. Execute JavaScript code to decompress the gz file and extract its contents for use in the next step.
  4. Store the extracted file. Save the uncompressed file using the File connector so downstream systems and team members can retrieve it.