Gmail Data Extraction Extract structured data from Gmail emails using the REST API directly. No pip dependencies — stdlib only (urllib, json, base64, csv, re). OAuth Setup Prerequisites - OAuth tokens stored in - Client credentials in - See skill for setup instructions Core Functions Token Refresh Gmail API Requests Search and Fetch Extract Text Body from Full Email Extract All Attachments from Email Download Attachment by ID Structured Data Extraction from Subject Lines Use regex to extract common patterns from email subjects: Thread-Aware Draft Creation To create a draft that threads with a…