{"id":390,"date":"2017-11-21T19:54:07","date_gmt":"2017-11-21T19:54:07","guid":{"rendered":"http:\/\/gearmage.com\/blog\/?p=390"},"modified":"2026-11-25T20:16:15","modified_gmt":"2026-11-25T20:16:15","slug":"extract-data-emails-attachments","status":"publish","type":"post","link":"https:\/\/gearmage.com\/blog\/extract-data-emails-attachments\/","title":{"rendered":"Extract data from emails and attachments: an in-depth guide"},"content":{"rendered":"\n<p>An invoice number, an order ID, a total, a due date: the values you need are often inside an email or its attachment. Mail Attachment Downloader 4.0 can read them out and use them to name files, fill a spreadsheet, or hand them to another system.<\/p>\n<p>In 3.x you did this with extractions in a rule, using the extraction wizard or a regular expression. In 4.0 there is a better way: the <strong><a href=\"https:\/\/gearmage.com\/buymaildownloader.html#plan-parser\">PRO Parser<\/a><\/strong>. You show it a value once, and it finds it in the next emails.<\/p>\n<p>This guide covers the Parser first. The older field finders are still there in <strong>PRO Rules<\/strong> (the new name for Global filters), and they are covered at the end as the advanced path.<\/p>\n\n<h2>Fields: where values are kept<\/h2>\n<p>A value the program reads is kept in a <strong>field<\/strong>, written in braces, such as <code>{INVOICE_NUMBER}<\/code> or <code>{ORDER_ID}<\/code>. You can use a field wherever the program asks for a name or a value: a folder, a file name, a CSV column, a database row.<\/p>\n<p>The email has its own fields too, such as <code>{FROM}<\/code>, <code>{SUBJECT}<\/code>, <code>{DATE[yyyy-MM-dd]}<\/code>, <code>{FILENAME}<\/code> and <code>{EXT}<\/code>. The <strong>&#8220;Fields&#8230;&#8221;<\/strong> button next to a name box lists them all.<\/p>\n\n<h2>Part 1: The Parser (recommended)<\/h2>\n<p>The Parser reads the email&#8217;s subject, sender and body, and its attachments: PDF, Word, Excel, HTML, CSV and text files, .eml and .msg files, and e-invoice XML.<\/p>\n<p>Open the <strong>Parser<\/strong> tab and click <strong>&#8220;New parser&#8221;<\/strong>. Building a parser takes five steps: <strong>&#8220;Source&#8221;<\/strong>, <strong>&#8220;Fields&#8221;<\/strong>, <strong>&#8220;Checks&#8221;<\/strong>, <strong>&#8220;Output&#8221;<\/strong> and <strong>&#8220;Run on&#8221;<\/strong>.<\/p>\n\n<h3>Start from real samples<\/h3>\n<p>In <strong>&#8220;Source&#8221;<\/strong>, pick 3 to 25 similar emails from a mailbox, from <strong>&#8220;Emails in the backup&#8221;<\/strong>, or from <strong>&#8220;A file&#8221;<\/strong>. Similar emails are grouped, so Acme&#8217;s invoices sit together and Northwind&#8217;s order confirmations sit together. Build one parser for each kind of email.<\/p>\n\n<h3>Four ways to make a field<\/h3>\n<p>In <strong>&#8220;Fields&#8221;<\/strong>, each field is found one of these ways:<\/p>\n<ul>\n<li><strong>Highlight.<\/strong> Select the value in a sample. The Parser works out how to find it, tries it on every sample and shows a hit rate, such as 3 \/ 3. Nothing is sent anywhere.<\/li>\n<li><strong>Using AI.<\/strong> Describe the value in words, such as &#8220;the date payment is due&#8221;. The AI finds it and shows where it read it, with how sure it is. A value that isn&#8217;t in the text is flagged.<\/li>\n<li><strong>Pattern.<\/strong> For values with a fixed shape, such as INV-2026-0423.<\/li>\n<li><strong>From invoice data.<\/strong> E-invoices (Factur-X, ZUGFeRD, XRechnung, Peppol, UBL) carry their own data. The Parser reads it exactly, with no pattern and no AI.<\/li>\n<\/ul>\n<figure><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/gearmage.com\/assets\/images\/4.0-parser-ai-words.jpg?w=840&#038;ssl=1\" alt=\"Fields described in plain words, such as the invoice number and the date payment is due, with the AI's answer and how sure it is for the first sample\"><figcaption>Describe the fields in words. The answer shows each value, how sure the AI is, and that it was found in the text.<\/figcaption><\/figure>\n<p>You choose the AI. The built-in AI runs on your own system and sends nothing anywhere. You can also use your own AI server, OpenAI, Claude, Gemini or Azure OpenAI; the program asks before anything leaves your system. Tick <strong>&#8220;Hybrid mode&#8221;<\/strong> to use patterns first and ask the AI only for fields they leave empty.<\/p>\n<p>Not sure which fields a sample offers? <strong>&#8220;Suggest fields and tables&#8221;<\/strong> proposes them, and you tick the ones you want.<\/p>\n<figure><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/gearmage.com\/assets\/images\/4.0-parser-einvoice.jpg?w=840&#038;ssl=1\" alt=\"A Factur-X e-invoice read from its own data: 22 fields such as invoice number, dates, seller name and VAT id, and a table of lines\"><figcaption>An e-invoice: 22 fields and the line items, read from the invoice&#8217;s own data.<\/figcaption><\/figure>\n\n<h3>Tables and line items<\/h3>\n<p>Invoices and orders are mostly tables. Click <strong>&#8220;Add a table&#8221;<\/strong> and the Parser reads it as rows and columns, in PDFs, HTML emails, spreadsheets and CSV files. It joins a table that runs over several pages and stops at the Total row.<\/p>\n<p>It then checks that the lines add up to the subtotal or total, so a misread amount doesn&#8217;t slip through. If no header row fits, <strong>&#8220;Describe the rows in words&#8221;<\/strong> lets the AI read them.<\/p>\n<figure><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/gearmage.com\/assets\/images\/4.0-parser-tables.jpg?w=840&#038;ssl=1\" alt=\"A table of line items with description, quantity, unit price and amount, found on three samples, adding up to the subtotal, and written as one CSV row per line\"><figcaption>One table found on three invoices from Acme, Northwind and Fabrikam. Each adds up to its subtotal.<\/figcaption><\/figure>\n\n<h3>Check the values before they are used<\/h3>\n<p>In <strong>&#8220;Checks&#8221;<\/strong>, give each field a check: <strong>&#8220;Not blank&#8221;<\/strong>, <strong>&#8220;Between&#8221;<\/strong> two values, <strong>&#8220;In a list&#8221;<\/strong> or <strong>&#8220;Not before&#8221;<\/strong> a date. You can also check fields together, such as <strong>&#8220;Subtotal plus tax equals the total&#8221;<\/strong>, and skip an invoice that was already parsed.<\/p>\n<p>An email that fails a check, misses a required field, or that the AI was unsure of waits in <strong>&#8220;Needs you&#8221;<\/strong>. Nothing is written, sent or moved for it until someone approves it.<\/p>\n\n<h3>Send the values somewhere<\/h3>\n<p>In <strong>&#8220;Output&#8221;<\/strong>, choose where the values go:<\/p>\n<ul>\n<li><strong>&#8220;CSV file&#8221;<\/strong>, <strong>&#8220;Excel workbook&#8221;<\/strong> or <strong>&#8220;Google Sheets&#8221;<\/strong>: one row per email, with the columns you choose. The lines of a table can go to their own sheet, one row per line.<\/li>\n<li><strong>&#8220;Save files&#8221;<\/strong>: save the attachments, the email, or both, in a folder and under a name built from the fields, such as <code>{SUPPLIER}\\{INVOICE_NUMBER}_{FILENAME}{EXT}<\/code>.<\/li>\n<li><strong>&#8220;Move the email&#8221;<\/strong> to a folder of its mailbox when it is done.<\/li>\n<li>With <a href=\"https:\/\/gearmage.com\/buymaildownloader.html#plan-server\">PRO Rules Server<\/a>: <strong>&#8220;SQL database&#8221;<\/strong>, <strong>&#8220;Webhook&#8221;<\/strong> and <strong>&#8220;Tell me&#8221;<\/strong> (a message to Slack, Teams and other channels).<\/li>\n<\/ul>\n<p>Every output has a Test button. Processing the same email again replaces its row instead of adding a second one.<\/p>\n\n<h3>Turn it on, then keep an eye on it<\/h3>\n<p>In <strong>&#8220;Run on&#8221;<\/strong>, choose the accounts and see which recent emails the parser would pick. Save it, and it runs with each download.<\/p>\n<p>The parser&#8217;s <strong>&#8220;Results&#8221;<\/strong> list every record it has read. Use <strong>&#8220;Export CSV&#8221;<\/strong> or <strong>&#8220;Export JSON&#8221;<\/strong>, or <strong>&#8220;Process again&#8221;<\/strong> from the kept copies without downloading anything. <strong>&#8220;Health&#8221;<\/strong> warns you when a field is found less often than usual, which often means a sender changed its layout.<\/p>\n<figure><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/gearmage.com\/assets\/images\/4.0-parser-results.jpg?w=840&#038;ssl=1\" alt=\"The Results of a parser: received date, sender, invoice number, supplier, due date and total of each email it read\"><figcaption>Results: every value the parser read, ready to export.<\/figcaption><\/figure>\n\n<h2>Part 2: Fields inside a PRO rule (advanced)<\/h2>\n<p>A parser is saved as a PRO rule, so with PRO Rules you can open it in the Rule Editor and add your own steps after <strong>&#8220;Run Parser&#8221;<\/strong>.<\/p>\n<p>You can also find a field directly in a rule. This suits a quick, one-off value. For many similar emails, the Parser is the better choice.<\/p>\n<p>Open the <strong>PRO Rules<\/strong> tab and open or create a rule. Set <strong>&#8220;Which emails&#8221;<\/strong> first, such as From contains <code>acme.example<\/code> and Subject contains <code>Invoice<\/code>. Then, under <strong>&#8220;Fields to find&#8221;<\/strong>, click <strong>&#8220;Add a field&#8221;<\/strong> and choose how the field is found.<\/p>\n\n<h3>With AI (PRO Rules Client and up)<\/h3>\n<p>Say in plain words what to look for. You set the type, a check, and what happens if a value is not found. One AI call fills all the fields of an email.<\/p>\n<figure><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/gearmage.com\/assets\/images\/4.0-ai-extraction-fields.jpg?w=840&#038;ssl=1\" alt=\"The Fields found with AI window: invoice number, due date and total including tax, each with a type, a check and what the AI reads\"><figcaption>Fields found with AI, inside a PRO rule.<\/figcaption><\/figure>\n\n<h3>By pointing at it: the extraction wizard (PRO Rules Server)<\/h3>\n<p>Paste or load a sample, highlight the value and click <strong>&#8220;Use the highlight&#8221;<\/strong>. Then fine-tune it on five tabs:<\/p>\n<ul>\n<li><strong>&#8220;Where it starts&#8221;<\/strong>: the text before the value, such as <code>Payment total: USD<\/code>.<\/li>\n<li><strong>&#8220;Where it ends&#8221;<\/strong>: at the end of the line, before certain words, or after a number of characters.<\/li>\n<li><strong>&#8220;Change it&#8221;<\/strong>: remove spaces, change case, or turn it into a number.<\/li>\n<li><strong>&#8220;Check it&#8221;<\/strong>: for example, it must not be empty.<\/li>\n<li><strong>&#8220;When it fails&#8221;<\/strong>: use a default, or skip the rule for this email.<\/li>\n<\/ul>\n<figure><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/gearmage.com\/assets\/images\/4.0-extraction-wizard.jpg?w=840&#038;ssl=1\" alt=\"The extraction wizard finding the total 249.99 after the text Payment total: USD in a sample Acme invoice\"><figcaption>The extraction wizard: &#8220;It finds: 249.99&#8221;.<\/figcaption><\/figure>\n\n<h3>By pattern (PRO Rules Client and up)<\/h3>\n<p>This is for people who know regular expressions (.NET style). Say the subject is &#8220;Invoice INV-2026-0423 from Acme Office Supplies&#8221;:<\/p>\n<ul>\n<li><strong>&#8220;Look in:&#8221;<\/strong> Subject<\/li>\n<li><strong>&#8220;Pattern:&#8221;<\/strong> <code>^.*Invoice (INV-\\d{4}-\\d{4}).*$<\/code><\/li>\n<li><strong>&#8220;Replace with:&#8221;<\/strong> <code>$1<\/code><\/li>\n<\/ul>\n<p><code>^<\/code> and <code>$<\/code> are the start and end of the subject, <code>.*<\/code> is any text, and the part in brackets is the invoice number. <code>$1<\/code> keeps only that part. Type a subject in <strong>&#8220;Try it on:&#8221;<\/strong> to check the result, or click <strong>&#8220;Pattern help&#8221;<\/strong>.<\/p>\n\n<h3>Values inside an attachment<\/h3>\n<p>To read a value from a saved file rather than the email, add the <strong>&#8220;Find fields in the file&#8221;<\/strong> step under <strong>&#8220;Then&#8221;<\/strong>. Steps run in order, so only steps below it can use its fields.<\/p>\n\n<h2>Where you can use the fields<\/h2>\n<p>Once a field has a value, use it in the rule&#8217;s save folder and file name, and in its steps. Click <strong>&#8220;Fields&#8230;&#8221;<\/strong> to insert one.<\/p>\n<figure><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/gearmage.com\/assets\/images\/4.0-file-names.jpg?w=840&#038;ssl=1\" alt=\"The Save step of a PRO rule: the save folder and file name built from fields, with an example of the resulting path\"><figcaption>A rule&#8217;s save folder and file name, built from fields, with an example of the result.<\/figcaption><\/figure>\n<ul>\n<li><strong><a href=\"https:\/\/gearmage.com\/buymaildownloader.html#plan-client\">PRO Rules Client<\/a>:<\/strong> &#8220;Move or copy the email&#8221;, &#8220;Copy file&#8221;, &#8220;Upload to cloud&#8221;, &#8220;Send to document management&#8221;, &#8220;Add a row to a spreadsheet&#8221;, and &#8220;Convert documents&#8221; to PDF.<\/li>\n<li><strong><a href=\"https:\/\/gearmage.com\/buymaildownloader.html#plan-server\">PRO Rules Server<\/a>:<\/strong> &#8220;Send an email&#8221; (in the subject, recipients or body), &#8220;Save to a database&#8221;, &#8220;Store CSV \/ SQL&#8221;, &#8220;Run a script&#8221;, &#8220;Run a command line&#8221;, &#8220;Web hook&#8221;, and conversion to other formats.<\/li>\n<\/ul>\n\n<h2>Which edition do you need?<\/h2>\n<ul>\n<li><strong><a href=\"https:\/\/gearmage.com\/buymaildownloader.html#plan-parser\">PRO Parser<\/a><\/strong>: the whole of Part 1, with CSV, Excel and Google Sheets output and file names from any field. Includes <a href=\"https:\/\/gearmage.com\/buymaildownloader.html#plan-backup\">PRO Backup<\/a>.<\/li>\n<li><strong><a href=\"https:\/\/gearmage.com\/buymaildownloader.html#plan-client\">PRO Rules Client<\/a><\/strong>: adds the Rule Editor, fields by pattern or with AI, and steps after the parser.<\/li>\n<li><strong><a href=\"https:\/\/gearmage.com\/buymaildownloader.html#plan-server\">PRO Rules Server<\/a><\/strong>: adds the extraction wizard, databases, webhooks, scripts and the 24&#215;7 Windows service.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/gearmage.com\/buymaildownloader.html#plan-free\">The Free edition<\/a> saves attachments and emails with a fixed choice of names; it doesn&#8217;t read values. Every PRO edition has a 30-day money-back guarantee. See <a href=\"https:\/\/gearmage.com\/buymaildownloader.html\">pricing<\/a>.<\/p>\n\n<p><strong>Try it:<\/strong> <a href=\"https:\/\/gearmage.com\/maildownloader.html\">download Mail Attachment Downloader<\/a> and start with <a href=\"https:\/\/gearmage.com\/buymaildownloader.html#plan-free\">the free edition<\/a>, or <a href=\"https:\/\/gearmage.com\/buymaildownloader.html\">compare the PRO editions<\/a>, each with a 30-day money-back guarantee.<\/p>\n\n<h2>Related<\/h2>\n<ul>\n<li><a href=\"https:\/\/gearmage.com\/pro-parser.html\">PRO Parser: read values out of invoices, orders and reports<\/a><\/li>\n<li><a href=\"https:\/\/gearmage.com\/maildownloader_pro_features.html#extract-with-parser\">Extract data using a Parser<\/a><\/li>\n<li><a href=\"https:\/\/gearmage.com\/maildownloader_pro_features.html#parser-tables\">Extract tables and line items<\/a><\/li>\n<li><a href=\"https:\/\/gearmage.com\/maildownloader_pro_features.html#parser-einvoice\">E-invoices (Factur-X, ZUGFeRD, XRechnung, Peppol, UBL)<\/a><\/li>\n<li><a href=\"https:\/\/gearmage.com\/maildownloader_pro_features.html#extraction-wizard\">Extraction wizard<\/a><\/li>\n<li><a href=\"https:\/\/gearmage.com\/blog\/emails-invoice-processing\/\">Invoice emails for invoice processing software<\/a><\/li>\n<li><a href=\"https:\/\/gearmage.com\/emails-to-csvexcel.html\">Emails to CSV and Excel<\/a><\/li>\n<\/ul>\n<p>Using version 3.x? See the <a href=\"https:\/\/gearmage.com\/blog\/extract-data-emails-attachments-3x\/\">3.x version of this guide<\/a>.<\/p>\n<p>Questions or ideas about extracting data? <a href=\"https:\/\/gearmage.com\/contact.html\">Contact us<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Read invoice numbers, totals, dates and line items out of emails and attachments with the PRO Parser, and use them in file names, sheets and systems.<\/p>\n","protected":false},"author":1,"featured_media":1257,"comment_status":"closed","ping_status":"open","sticky":true,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[129,122,4,6],"tags":[96,19,97,98],"class_list":["post-390","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai","category-data-extraction","category-mad","category-tips","tag-extract-data","tag-extract-data-from-email","tag-extract-data-from-email-attachments","tag-transform-data"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Extract data from emails and attachments - Gearmage Blog<\/title>\n<meta name=\"description\" content=\"Read invoice numbers, totals, dates and line items out of emails and attachments with the PRO Parser, and use them in file names, sheets and systems.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/gearmage.com\/blog\/extract-data-emails-attachments\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Extract data from emails and attachments - Gearmage Blog\" \/>\n<meta property=\"og:description\" content=\"Read invoice numbers, totals, dates and line items out of emails and attachments with the PRO Parser, and use them in file names, sheets and systems.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/gearmage.com\/blog\/extract-data-emails-attachments\/\" \/>\n<meta property=\"og:site_name\" content=\"Gearmage Blog\" \/>\n<meta property=\"article:published_time\" content=\"2017-11-21T19:54:07+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-25T20:16:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2026\/11\/4-0-parser-ai-words.jpg?fit=1400%2C800&ssl=1\" \/>\n\t<meta property=\"og:image:width\" content=\"1400\" \/>\n\t<meta property=\"og:image:height\" content=\"800\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"gearmage\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"gearmage\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/extract-data-emails-attachments\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/extract-data-emails-attachments\\\/\"},\"author\":{\"name\":\"gearmage\",\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/#\\\/schema\\\/person\\\/c8728645787bff3555b5873b43161652\"},\"headline\":\"Extract data from emails and attachments: an in-depth guide\",\"datePublished\":\"2017-11-21T19:54:07+00:00\",\"dateModified\":\"2026-11-25T20:16:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/extract-data-emails-attachments\\\/\"},\"wordCount\":1547,\"publisher\":{\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/extract-data-emails-attachments\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/gearmage.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/4-0-parser-ai-words.jpg?fit=1400%2C800&ssl=1\",\"keywords\":[\"extract data\",\"extract data from email\",\"extract data from email attachments\",\"transform data\"],\"articleSection\":[\"AI\",\"Data extraction and invoices\",\"Mail Attachment Downloader\",\"Tips\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/extract-data-emails-attachments\\\/\",\"url\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/extract-data-emails-attachments\\\/\",\"name\":\"Extract data from emails and attachments - Gearmage Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/extract-data-emails-attachments\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/extract-data-emails-attachments\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/gearmage.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/4-0-parser-ai-words.jpg?fit=1400%2C800&ssl=1\",\"datePublished\":\"2017-11-21T19:54:07+00:00\",\"dateModified\":\"2026-11-25T20:16:15+00:00\",\"description\":\"Read invoice numbers, totals, dates and line items out of emails and attachments with the PRO Parser, and use them in file names, sheets and systems.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/extract-data-emails-attachments\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/gearmage.com\\\/blog\\\/extract-data-emails-attachments\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/extract-data-emails-attachments\\\/#primaryimage\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/gearmage.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/4-0-parser-ai-words.jpg?fit=1400%2C800&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/gearmage.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/4-0-parser-ai-words.jpg?fit=1400%2C800&ssl=1\",\"width\":1400,\"height\":800,\"caption\":\"Fields described in plain words, such as the invoice number and the date payment is due, with the AI's answer and how sure it is for the first sample\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/extract-data-emails-attachments\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Extract data from emails and attachments: an in-depth guide\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/\",\"name\":\"Gearmage Blog\",\"description\":\"Email Processing Tools and Solutions\",\"publisher\":{\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/#organization\",\"name\":\"Gearmage\",\"url\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/gearmage.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/02\\\/cropped-cropped-GearMage.jpg?fit=240%2C58&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/gearmage.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/02\\\/cropped-cropped-GearMage.jpg?fit=240%2C58&ssl=1\",\"width\":240,\"height\":58,\"caption\":\"Gearmage\"},\"image\":{\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/#\\\/schema\\\/person\\\/c8728645787bff3555b5873b43161652\",\"name\":\"gearmage\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ca0fad01f9a63241bc21d4f1f44befe7c62e4ee3bb268fb1adaadc2e49ed0699?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ca0fad01f9a63241bc21d4f1f44befe7c62e4ee3bb268fb1adaadc2e49ed0699?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ca0fad01f9a63241bc21d4f1f44befe7c62e4ee3bb268fb1adaadc2e49ed0699?s=96&d=mm&r=g\",\"caption\":\"gearmage\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Extract data from emails and attachments - Gearmage Blog","description":"Read invoice numbers, totals, dates and line items out of emails and attachments with the PRO Parser, and use them in file names, sheets and systems.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/gearmage.com\/blog\/extract-data-emails-attachments\/","og_locale":"en_US","og_type":"article","og_title":"Extract data from emails and attachments - Gearmage Blog","og_description":"Read invoice numbers, totals, dates and line items out of emails and attachments with the PRO Parser, and use them in file names, sheets and systems.","og_url":"https:\/\/gearmage.com\/blog\/extract-data-emails-attachments\/","og_site_name":"Gearmage Blog","article_published_time":"2017-11-21T19:54:07+00:00","article_modified_time":"2026-11-25T20:16:15+00:00","og_image":[{"width":1400,"height":800,"url":"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2026\/11\/4-0-parser-ai-words.jpg?fit=1400%2C800&ssl=1","type":"image\/jpeg"}],"author":"gearmage","twitter_card":"summary_large_image","twitter_misc":{"Written by":"gearmage","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/gearmage.com\/blog\/extract-data-emails-attachments\/#article","isPartOf":{"@id":"https:\/\/gearmage.com\/blog\/extract-data-emails-attachments\/"},"author":{"name":"gearmage","@id":"https:\/\/gearmage.com\/blog\/#\/schema\/person\/c8728645787bff3555b5873b43161652"},"headline":"Extract data from emails and attachments: an in-depth guide","datePublished":"2017-11-21T19:54:07+00:00","dateModified":"2026-11-25T20:16:15+00:00","mainEntityOfPage":{"@id":"https:\/\/gearmage.com\/blog\/extract-data-emails-attachments\/"},"wordCount":1547,"publisher":{"@id":"https:\/\/gearmage.com\/blog\/#organization"},"image":{"@id":"https:\/\/gearmage.com\/blog\/extract-data-emails-attachments\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2026\/11\/4-0-parser-ai-words.jpg?fit=1400%2C800&ssl=1","keywords":["extract data","extract data from email","extract data from email attachments","transform data"],"articleSection":["AI","Data extraction and invoices","Mail Attachment Downloader","Tips"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/gearmage.com\/blog\/extract-data-emails-attachments\/","url":"https:\/\/gearmage.com\/blog\/extract-data-emails-attachments\/","name":"Extract data from emails and attachments - Gearmage Blog","isPartOf":{"@id":"https:\/\/gearmage.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/gearmage.com\/blog\/extract-data-emails-attachments\/#primaryimage"},"image":{"@id":"https:\/\/gearmage.com\/blog\/extract-data-emails-attachments\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2026\/11\/4-0-parser-ai-words.jpg?fit=1400%2C800&ssl=1","datePublished":"2017-11-21T19:54:07+00:00","dateModified":"2026-11-25T20:16:15+00:00","description":"Read invoice numbers, totals, dates and line items out of emails and attachments with the PRO Parser, and use them in file names, sheets and systems.","breadcrumb":{"@id":"https:\/\/gearmage.com\/blog\/extract-data-emails-attachments\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/gearmage.com\/blog\/extract-data-emails-attachments\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/gearmage.com\/blog\/extract-data-emails-attachments\/#primaryimage","url":"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2026\/11\/4-0-parser-ai-words.jpg?fit=1400%2C800&ssl=1","contentUrl":"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2026\/11\/4-0-parser-ai-words.jpg?fit=1400%2C800&ssl=1","width":1400,"height":800,"caption":"Fields described in plain words, such as the invoice number and the date payment is due, with the AI's answer and how sure it is for the first sample"},{"@type":"BreadcrumbList","@id":"https:\/\/gearmage.com\/blog\/extract-data-emails-attachments\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/gearmage.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Extract data from emails and attachments: an in-depth guide"}]},{"@type":"WebSite","@id":"https:\/\/gearmage.com\/blog\/#website","url":"https:\/\/gearmage.com\/blog\/","name":"Gearmage Blog","description":"Email Processing Tools and Solutions","publisher":{"@id":"https:\/\/gearmage.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/gearmage.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/gearmage.com\/blog\/#organization","name":"Gearmage","url":"https:\/\/gearmage.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/gearmage.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2016\/02\/cropped-cropped-GearMage.jpg?fit=240%2C58&ssl=1","contentUrl":"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2016\/02\/cropped-cropped-GearMage.jpg?fit=240%2C58&ssl=1","width":240,"height":58,"caption":"Gearmage"},"image":{"@id":"https:\/\/gearmage.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/gearmage.com\/blog\/#\/schema\/person\/c8728645787bff3555b5873b43161652","name":"gearmage","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ca0fad01f9a63241bc21d4f1f44befe7c62e4ee3bb268fb1adaadc2e49ed0699?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ca0fad01f9a63241bc21d4f1f44befe7c62e4ee3bb268fb1adaadc2e49ed0699?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ca0fad01f9a63241bc21d4f1f44befe7c62e4ee3bb268fb1adaadc2e49ed0699?s=96&d=mm&r=g","caption":"gearmage"}}]}},"jetpack-related-posts":[],"jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2026\/11\/4-0-parser-ai-words.jpg?fit=1400%2C800&ssl=1","_links":{"self":[{"href":"https:\/\/gearmage.com\/blog\/wp-json\/wp\/v2\/posts\/390","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gearmage.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gearmage.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gearmage.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gearmage.com\/blog\/wp-json\/wp\/v2\/comments?post=390"}],"version-history":[{"count":15,"href":"https:\/\/gearmage.com\/blog\/wp-json\/wp\/v2\/posts\/390\/revisions"}],"predecessor-version":[{"id":1407,"href":"https:\/\/gearmage.com\/blog\/wp-json\/wp\/v2\/posts\/390\/revisions\/1407"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gearmage.com\/blog\/wp-json\/wp\/v2\/media\/1257"}],"wp:attachment":[{"href":"https:\/\/gearmage.com\/blog\/wp-json\/wp\/v2\/media?parent=390"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gearmage.com\/blog\/wp-json\/wp\/v2\/categories?post=390"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gearmage.com\/blog\/wp-json\/wp\/v2\/tags?post=390"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}