The Email Source lets you load data from files that you send by email. When you create a Pipeline with this Source, Hevo generates a unique email address for the Pipeline. You can then send or forward emails with CSV, TSV, or Parquet files attached to this address, and Hevo loads the rows of the attached files into the Destination of your choice.
You can use this Source to load data from applications that can send reports only by email, such as scheduled exports from a reporting tool, or from vendors and partners who share files with you as email attachments. You do not need to provide any credentials, and you define rules that determine the attachments Hevo ingests and the tables it loads them into.
Supported Features
| Feature Name |
Supported |
| Capture deletes |
No |
| Data blocking (skip objects and fields) |
Yes |
| Resync (objects and Pipelines) |
Yes |
| API configurable |
No |
| File encoding |
UTF-8 |
Prerequisites
-
The files that you want to load are in the CSV, TSV, or Parquet format and are attached to the email. Hevo does not load data from the body of the email or from links in it.
-
Each email, including its attachments, is not larger than 40 MB. Attachments grow by about a third when an email is sent, so keep the total size of the attachments under about 30 MB.
-
If you want Hevo to load emails only from specific senders, the domain of each sender passes its Domain-based Message Authentication, Reporting, and Conformance (DMARC) check. Most email providers, such as Google Workspace and Microsoft 365, do this for you. If you are not sure, contact your email administrator.
Perform the following steps to configure your Email Source:
-
Click Pipelines in the Navigation Bar.
-
Click + Create Pipeline in the Pipelines List View.
-
On the Select Source Type page, select Email.
-
On the Select Destination Type page, select the type of Destination you want to use.
-
On the Configure Source page, specify the following:

-
Source Name: A unique name for your Source, not exceeding 255 characters. For example, Email Source.
-
In the Emails to Load section:
-
Pipeline Email Address: The email address that Hevo generates for your Pipeline. You can copy it using the copy icon next to it. You need to send or forward the emails with the files that you want to load to this address. You cannot change this address.
-
Allowed Senders (Optional): The email addresses or domains whose emails Hevo must load, separated by commas. For example, reports@example.com, @example.org. If you specify this field, Hevo loads an email only if its sender is in this list, the domain of the sender passes its DMARC check, and the email has only one sender address. If you leave this field blank, Hevo loads the emails from all senders.
-
Subject Filter (Optional): A regular expression that the subject of an email must contain for Hevo to load it. The match is not case-sensitive. For example, ^Daily sales report matches the emails whose subject starts with Daily sales report. If you leave this field blank, Hevo loads emails with any subject.
Note: If you change the Allowed Senders or Subject Filter after creating the Pipeline, the change applies only to the emails that Hevo has not yet loaded. The data loaded from earlier emails remains in the Destination.
-
In the Files to Sync section, define rules that determine the attachments Hevo ingests and the tables it loads them into. Hevo checks each attachment against the rules from top to bottom and ingests it using the first rule that matches. Therefore, add a rule for specific files above a rule that reads all the files of a format. You can add up to 20 rules.
To add a rule, perform the following steps:
-
Click Add Rule.
-
Specify the following:

-
File Format: The format of the attachments that you want to ingest. Select one of the following:
-
CSV: Files with the .csv extension.
-
TSV: Files with the .tsv extension.
-
Parquet: Files with the .parquet extension.
Hevo identifies the format of an attachment from its extension, and this rule skips attachments in any other format. Default value: CSV. You cannot change the file format of a rule after creating the Pipeline.
-
File Name Pattern (Optional): A regular expression that must match the entire file name of the attachment. The match is case-sensitive. For example, orders_\d{8}\.csv matches orders_20261201.csv. If you leave this field blank, the rule loads all the attachments of the selected format. We recommend that you specify a file name pattern for each rule, so that a file with different columns is not loaded into the table of another rule.
-
Table Name: The name of the Destination table into which the rule loads the attachments. You can use $1 to $9 for the groups captured by the file name pattern. For example, with the file name pattern sales_(\w+)_\d{8}\.csv and the table name sales_$1, Hevo loads sales_east_20261201.csv into the sales_east table.
For CSV and TSV files, you can also specify the following settings:
-
Header: Select First line is the header if the first line of each file contains the column names. Otherwise, select Headerless: Name the columns column_1, column_2, and so on. Default value: First line is the header.
-
Delimiter: The character that separates the values in a row. For example, enter | for pipe-delimited files. To specify a tab, enter \t. Default value: A comma (,) for CSV files and a tab for TSV files.
-
Quote Character: The character that encloses a value. Default value: A double quote (“).
-
Skip Lines at the Top: The number of lines to skip at the beginning of each file. Hevo reads the header, if any, from the line after these lines. Default value: 0.
-
Skip Lines at the Bottom: The number of lines to skip at the end of each file. For example, enter 1 if each file ends with a totals row. Default value: 0.
-
Escape Character: The character used to escape a quote character within a value. If you leave this field blank, Hevo reads two consecutive quote characters within a value as a single quote.
-
Null Sequence: The value that Hevo must load as NULL wherever it appears, such as \N. If you leave this field blank, Hevo loads empty values as NULL.
-
Line Separator: The character that marks the end of a line. If you leave this field blank, Hevo uses a newline, and handles carriage return and line feed (CRLF) line endings automatically.
-
Values Are Never Quoted: Enable this option only if the values in your files are never enclosed in quote characters. If enabled, a value that contains the delimiter is split into separate columns. Default value: Disabled.
-
Skip Rows after the Header: The number of rows between the header and the first data row, such as a row containing units. Default value: 0.
-
Click Save.
Repeat the steps above to add more rules.
-
(Optional) In the Additional Settings section:
-
Updated File Handling: The way Hevo loads the rows of an attachment that it ingests again. Select one of the following:
-
Update Rows by Line Number: Hevo replaces the rows previously loaded from the attachment with its current rows. This is the default option.
-
Keep Every Version: Hevo loads the rows of each version of the attachment into the Destination table.
With Update Rows by Line Number, Hevo uses the __file and __line columns as the primary key of the Destination table. With Keep Every Version, Hevo also adds the __modified column to the primary key, so that the rows of each version are kept separately. Read Schema and Primary Keys for more information.
Note: This setting does not change the data loaded for Email. Hevo reads each email only once, and reads its attachments again only when you resync the object. The rows of an attachment are the same each time.
-
Compression: The way Hevo reads compressed attachments. Select one of the following:
-
Auto-detect: Hevo identifies compressed attachments, such as orders.csv.gz, from their file names or content, and reads the files from them. This is the default option. Read Supported Compression Formats for the formats that Hevo supports.
-
None: Hevo reads every attachment as it is, without decompressing it.
-
Click Test & Continue. When you create a Pipeline, Hevo displays the Pipeline email address and a message that it reads the emails sent to this address once you create the Pipeline. If you edit the Source of an existing Pipeline, Hevo also checks the emails that have reached the address and displays the reasons for which it cannot load any of them. Once the test is successful, you can proceed to set up your Destination.
-
After you create the Pipeline, send or forward an email with the files that you want to load attached to the Pipeline Email Address. Hevo loads the attachments in the next Pipeline run. You can view the address at any time in the Configure Source section of the Pipeline Setup tab.

Data Replication
Hevo ingests the following types of data from the attachments that match your rules:
-
Historical Data: The first run of the Pipeline ingests the attachments of all the emails that reached the Pipeline email address before the run, and loads them into the Destination.
-
Incremental Data: Once the historical load is complete, Hevo checks for new emails as per the sync frequency and ingests their attachments. Hevo opens each email only once. As a result, the same file sent in two emails is loaded twice. If you resync the object, Hevo does not read the emails again. It reads the attachments that it has already ingested into the object again and replaces their rows in the Destination table.
Hevo opens up to 500 new emails, starting with the oldest, in each Pipeline run. If more emails are waiting, Hevo opens them in the subsequent runs.
Hevo reads the attachments of a forwarded email, including emails attached to it, and skips images shown in the body of the email, such as a logo in an email signature.
Schema and Primary Keys
Hevo creates a table in the Destination for each rule, with the name that you specify in the rule. On the Configure Objects page, all the tables are displayed under the schema root.
Hevo replaces any character other than letters, digits, and underscores in a table name with an underscore (_). If a table name starts with a digit, Hevo adds an underscore at the beginning.
In addition to the columns in your files, Hevo adds the following columns to each table:
| Column |
Description |
| __file |
The path of the attachment in the Pipeline’s inbox, in the format yyyy/mm/dd/<email ID>/<file name>, where the date is the day on which the email was received. For example, 2026/12/03/1796303417120-abc123/orders_20261201.csv. If an email contains two attachments with the same name, Hevo adds a suffix, such as _1, to the name of the second attachment. |
| __line |
The position of the row in the attachment, starting from 0 for the first data row. The header row is not counted. |
| __modified |
The date and time when the email was received at the Pipeline email address. |
Hevo uses the __file and __line columns as the primary key of each table. If you select Keep Every Version for Updated File Handling, Hevo also adds the __modified column to the primary key.
Hevo infers the data type of each column from its values. For example, Hevo loads values such as 2026-10-01 as dates, whole numbers as integers, and other numbers as decimals. Values that do not match any other type, including numbers with leading zeros, such as 007, are loaded as strings. If an attachment contains a column that is not present in the Destination table, Hevo adds the column to the table.
Hevo identifies compressed attachments from their file names, or from their content if the name does not indicate the format, and reads the files in them. Hevo supports the following compression formats:
| Compression Format |
File Extensions |
| gzip |
.gz, .gzip |
| bzip2 |
.bz2, .bzip2 |
| Zstandard |
.zst, .zstd |
| zlib (deflate) |
.deflate, .zz, .zlib |
| Unix compress |
.Z |
| Snappy (framed) |
.sz, .snappy |
| LZ4 (framed) |
.lz4 |
| xz |
.xz |
Note: Hevo does not read the files in .zip or .tar archives attached to an email. Send such files uncompressed, or compress each file separately, such as orders.csv.gz.