
Completed
Posted
Paid on delivery
I need a compact Node.js script that connects to the Gmail API via OAuth2, checks my inbox for unread messages, and logs two things for every hit: the full email body and any attachments it finds. A plain console output. Key points you should build in • OAuth2 flow: handle token generation, storage, and refresh seamlessly. • Only target unread messages. When finished, mark each one read. • Parse the MIME payload to pull out the complete body text as well as every attachment. • Keep external dependencies light • Code should be commented, and runnable with a single npm start after I drop in my credentials. Acceptance criteria 1. Running the script with valid credentials outputs every unread email’s body and stores any attachments into a variable. 2. No unhandled promise rejections or forced sync delays; the script exits gracefully. 3. A short README explains setup (Google Cloud steps, .env variables, run command). I need this ASAP, so please let me know if you can turn it around quickly and how long you’ll need.
Project ID: 40737550
103 proposals
Remote project
Active 7 days ago
Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs

Hello, I can build a Node.js script that securely connects to Gmail via OAuth2, processes unread emails, and logs their content and attachments without external bloat. I’ve built a similar system for a client that needed to monitor support emails—it used the Gmail API to fetch unread messages, parsed MIME payloads, and stored attachments in a structured way. I’d approach this using OAuth2 with token refresh handling and a lightweight MIME parser to avoid bloated dependencies. The script will mark emails as read after processing to prevent duplicates. This will give you a clean, searchable log of all unread messages and their attachments, reducing manual checks. Proper error handling and async/await will ensure the script runs smoothly without crashes. I’ll include a README with setup steps and environment variable instructions to make it easy to deploy. Once the script is ready, I’ll test it with your credentials to confirm it works as expected. If this approach works for you, I can start immediately and deliver it within 24 hours. Thanks, Lazar.
€30 EUR in 1 day
4.4
4.4
103 freelancers are bidding on average €125 EUR for this job

Hi, I will create a Node.js script that connects to the Gmail API using OAuth2. This is important because it allows secure access to your inbox without exposing your credentials. I will implement the OAuth2 flow to handle token generation, storage, and refresh. This ensures that your script can run continuously without manual intervention. I will focus on unread messages and mark them as read after processing, which helps keep your inbox organized. The script will parse the MIME payload to extract the full email body and any attachments. This is crucial for ensuring you have all relevant information. I will keep external dependencies minimal to maintain performance and will comment the code for clarity. The script will be runnable with a single npm start command after you provide your credentials. To get started, I will need your Google Cloud credentials and any specific requirements you have for the output format. Thanks!
€50 EUR in 1 day
7.8
7.8

This is a straightforward Node.js/Gmail API task, and I can keep the implementation compact and easy to run. I’ll handle the OAuth2 flow with token storage/refresh, fetch only unread messages, parse the MIME payload for the full body and attachments, mark messages as read, and handle everything asynchronously so the script exits cleanly. I’ll also include comments and a short README covering Google Cloud setup, environment variables, and "npm start". I can turn this around quickly. If you share the current credentials/setup requirements, I can get started.
€70 EUR in 1 day
7.7
7.7

Pulling unread Gmail messages is the easy part here; the real work is handling OAuth2 cleanly, parsing MIME parts properly, and exiting without hanging promises or half-processed attachments. I’d build this as a compact Node.js script with minimal packages, clear comments, and a simple flow so you can drop in credentials, run npm start, log bodies, capture attachments, and mark each processed email as read. I’ve worked on API-driven Node.js tasks where the difference between a script that “works once” and one that is actually usable is token refresh handling, attachment decoding, and clean shutdown behavior. For this job, I’d keep the dependency footprint light and make the README practical so setup is straightforward on your side. - Do you want attachments kept only in-memory as variables, or should I also include an optional save-to-disk toggle? - Do you want plain text only, or should the script prefer HTML when a message body is multipart? - Will you be using a personal Gmail account or Google Workspace?
€159 EUR in 2 days
7.4
7.4

Dear Client, I’m Md Toriqul Islam, an experienced full-stack developer specializing in Node.js, Gmail API, OAuth2, REST APIs, MIME parsing, and automation. I have a few questions: 1. Will you provide Google Cloud credentials? 2. Should attachments remain in memory only? 3. Which Node.js version should I target? I understand you need a compact Node.js script that securely authenticates with Gmail, finds unread emails, extracts complete bodies and attachments, logs results, then marks messages as read. My Node.js, OAuth2, API integration, async programming, MIME handling, and error-management experience fits this task well. I’ll include clean comments and a concise README covering Google Cloud setup, environment variables, and npm start. Looking forward to hearing from you. Best regards, Md Toriqul Islam
€100 EUR in 3 days
6.5
6.5

⭐⭐⭐⭐ YES, your Gmail API automation requirements align with my expertise! ⭐⭐⭐⭐ I can build a compact, well-commented Node.js script using Gmail API, OAuth2, and MIME parsing to fetch unread emails, extract complete email bodies, store attachments in variables, and mark messages as read. I’ll ensure automatic token refresh, secure token storage, lightweight dependencies, error handling, and a simple README covering Google Cloud setup, .env configuration, and npm start. ⏱️ Estimated delivery: 1–2 days. I’m available to start immediately and can prioritize a quick turnaround. Thanks!! Parminder
€222 EUR in 2 days
6.9
6.9

Hi, I can build this compact Node.js Gmail API logger with a clean OAuth2 flow and minimal dependencies. I’ll handle OAuth2 token generation/storage/refresh, fetch only unread emails, parse MIME parts for complete body text and attachments, store attachment data in variables, then mark processed emails as read. I’ll ensure async handling is clean with graceful error handling and no unhandled promise rejections. I’ll also provide commented code, a simple .env setup and README covering Google Cloud configuration and npm start. I can turn this around quickly and start ASAP.
€100 EUR in 2 days
6.3
6.3

I can build this as a lightweight Node.js script using the Gmail API and OAuth2, handling token storage/refresh, unread-message filtering, MIME body parsing, attachments, and marking processed emails as read. I’ll keep dependencies minimal and include a clear README so it runs with a simple npm start after credentials are added. I can have this ready within 2 day. Do you already have the Google Cloud OAuth credentials created?
€50 EUR in 2 days
6.0
6.0

Hi, I'm Denis, a full-stack developer experienced in OAuth2 flows and API integrations. I understand exactly what you need: a Node.js script that pulls unread emails from Gmail, extracts body and attachments, logs them, then marks messages as read. I'll set up OAuth2 authentication with token storage and refresh logic, query the Gmail API for unread messages, parse the MIME payload to extract text and attachments, and handle state transitions cleanly. I've completed similar integrations before, so the Gmail API specifics are straightforward. My approach: start with OAuth2 setup using the Google client library, implement token refresh to keep credentials valid, then build message fetching logic targeting unread items. I'll parse MIME structure to extract email body and attachments, log everything to console, and mark each message as read once processed. The script will be self-contained with minimal dependencies and include proper error handling. One consideration: MIME parsing varies by message format. I'll handle multipart messages carefully to capture text from both plain and HTML versions and properly identify attachment boundaries. I'll also add retry logic and exponential backoff to handle Gmail API rate limits or temporary failures. I estimate 4-6 hours for a complete, tested script with documentation. I can start immediately. Let's connect and discuss the details. Thanks, Denis.
€30 EUR in 3 days
6.0
6.0

Hello, I hope you're doing well. I work with Node.js API integrations and OAuth2 flows, including token refresh and graceful async error handling. For a similar mail-ingestion pattern, I’ve used googleapis to inspect Gmail MIME parts, decode base64url bodies, and collect attachment data without blocking the process. I’d build this with a small dependency set, dotenv, and a clean npm start entry point. The README will cover Google Cloud setup, environment variables, and token storage. Could we have a quick chat to confirm the attachment variable format and console output you prefer? Thank you, Jasjot
€100 EUR in 3 days
5.6
5.6

==== Hi - Truong here ==== "NODE.JS GMAIL UNREAD EMAIL LOGGER" - you need unread emails and attachments captured reliably in one simple run. I’d use Gmail API search with the unread filter, then walk each MIME part to collect the complete text body and attachment data before marking the message read. OAuth tokens will be stored and refreshed automatically, with async handling so the script exits cleanly. I’d keep dependencies minimal and provide a short README covering Google Cloud setup, .env values, npm start, and the expected output. I’d also test HTML/plain-text emails, nested MIME parts, multiple attachments, and empty attachment cases. Can you provide the Gmail API OAuth credentials setup you already have, or should the README include the full Google Cloud setup from scratch? Looking forward to work with you.
€150 EUR in 1 day
5.4
5.4

Hi, I understand you're looking for a Node.js script to interact with the Gmail API, specifically to log unread emails and their attachments. The task involves handling OAuth2 for authentication, parsing MIME payloads, and managing email states effectively. The main technical challenge here is ensuring a seamless OAuth2 flow for token generation, storage, and refresh, which is critical for maintaining API access. Additionally, accurately parsing MIME payloads to extract email bodies and attachments requires careful handling to ensure no data is missed or misinterpreted. My approach would involve thorough initial testing to prioritize stability and data accuracy. With extensive experience in JavaScript and API integration, I have successfully implemented similar solutions for email parsing and OAuth2 authentication in past projects. Q1 – How frequently do you anticipate running this script, and should it handle potential rate limiting from the Gmail API? Q2 – Are there specific types of attachments that need special handling or logging? Q3 – Should the script be optimized for any particular runtime environment or hosting platform? Looking forward to hearing from you.
€30 EUR in 7 days
5.6
5.6

Hello Mate!Greetings , Good morning! I’ve carefully checked your requirements and really interested in this job. I’m full stack node.js developer working at large-scale apps as a lead developer with U.S. and European teams. I’m offering best quality and highest performance at lowest price. I can complete your project on time and your will experience great satisfaction with me. I’m well versed in React/Redux, Angular JS, Node JS, Ruby on Rails, html/css as well as javascript and jquery. I have rich experienced in Javascript ES6, Email Handling, JavaScript, Node.js, OAuth and API Integration. For more information about me, please refer to my portfolios. I’m ready to discuss your project and start immediately. Looking forward to hearing you back and discussing all details.. Thanks and Regards
€155 EUR in 3 days
5.5
5.5

Hi, I’ve built OAuth2-based Node.js API integrations that fetch data, parse payloads, and run reliably from a single npm start. You need a compact script that pulls only unread Gmail messages via OAuth2, logs the full MIME body and attachments, then marks each message as read with graceful exits. I’ll implement token storage and refresh, robust MIME parsing, and lightweight dependencies with clear comments and a setup-ready README. I’ve delivered similar mailbox automation scripts with dependable error handling and consistent console output.
€150 EUR in 2 days
4.8
4.8

I have read your job description carefully. You need a compact Node.js Gmail API utility that uses OAuth2, finds only unread emails, extracts the complete MIME body and every attachment, logs the results, and marks processed messages as read. I can implement the Gmail API integration with clean async handling and automatic token refresh/storage. I’ll keep dependencies minimal and structure the MIME parser to handle multipart messages, nested parts, Base64URL decoding, and attachment extraction. Attachments will be collected into a variable while the email body is printed to the console. After successful processing, each message will be marked as read, with proper error handling so there are no unhandled promise rejections or forced synchronous delays. I’ll also provide a concise README covering Google Cloud project/API setup, OAuth consent/credentials, .env configuration, token generation/storage, and npm start. I can turn this around quickly approximately 1 day for the complete working script, README, and testing with real Gmail messages.
€80 EUR in 1 day
5.0
5.0

Hello, As a seasoned Node.js developer with over 16 years of experience, I am confident in my ability to tackle your Gmail API script. My knowledge of OAuth2 flow will allow me to handle token generation, storage, and refresh - eliminating any concerns about potential security risks. Moreover, my approach to this project would be efficiency-based to limit external dependencies and keep the code lightweight. Having worked extensively with Node.js, I am well-versed in parsing MIME payload and extracting the complete body text along with attachments efficiently. Additionally, my deep focus on delivering clean, commented code will ensure that you can easily understand and modify the script as per your need. Finally, time-sensitivity is something I deeply value. I assure you a quick turnaround with this project without compromising on quality or accuracy. A concise README file will accompany the project outlining all necessary setup steps and how to run it effortlessly. I believe my skills and dedication make me the best choice for your needs. Thanks!
€155 EUR in 4 days
4.9
4.9

Hello, I can build this compact Node.js Gmail logger with a clean OAuth2 flow and minimal dependencies, ready to run with a simple npm start after your credentials are configured. I’ll handle OAuth token generation, secure storage and refresh, then query Gmail specifically for unread inbox messages. Each message will be parsed through its MIME structure to extract the complete email body and every attachment, store the attachment data in a variable, output the results to the console, and mark the processed messages as read. I’ll keep the implementation asynchronous with proper error handling so there are no unhandled promise rejections or unnecessary synchronous delays. The project will include clear comments and a short README covering Google Cloud setup, environment variables and the exact run command. I can keep this focused and turn it around quickly. Looking forward to work with you. Thanks
€150 EUR in 3 days
4.9
4.9

This is a small script, but MIME parsing is the part I’d make robust. Gmail messages can contain nested multipart structures, HTML/plain-text alternatives, inline content and multiple attachments, so I wouldn’t assume the body always sits in one predictable payload field. I’d build the Node.js script around the Gmail API with OAuth2 token creation, local token storage and automatic refresh. It would query only unread messages, recursively parse the MIME parts, extract the complete readable body, retrieve every attachment into memory, log the required output, and mark the message as read only after processing succeeds. I’d keep dependencies minimal, use async/await throughout with proper error handling and graceful shutdown, and provide the credentials/.env setup plus Google Cloud configuration in a short README. Everything will run through `npm start`. For this scope, I’d target delivery within 24 hours, including basic testing and documentation. Adnan
€140 EUR in 7 days
5.1
5.1

You need a compact Node.js script that connects to your Gmail via OAuth2, finds every unread message, logs the full body and any attachments, then marks each message read, all runnable with one npm start after you add your credentials. I would build it with the official googleapis Node.js client and google-auth-library, handling OAuth2 consent, token storage, and automatic refresh. The script would walk the MIME payload to extract the full body text and decode each attachment, exiting gracefully with no unhandled rejections. A short README would cover the Google Cloud setup, .env variables, and the run command. I am currently building an AI-powered website-generation platform with similar backend automation and API integration work. Do you already have the OAuth Client ID and secret with the Gmail API enabled, or should the README cover full Google Cloud setup? Should attachments be saved to disk, or is holding them in memory enough? I can have a working version ready within 3 days. Happy to start as soon as you are ready.
€120 EUR in 3 days
4.6
4.6

Hello, I checked your project "Node.js Gmail Unread Email Logger" and already have a clear understanding of your requirements and how to deliver them efficiently. I have solid experience in JavaScript, Node.js, Email Handling, and I've successfully completed similar projects by delivering high-quality, scalable, and reliable solutions. Why choose me? * Strong expertise in JavaScript, Node.js, Email Handling * Clean, optimized, and scalable implementation * Fast communication and regular progress updates * Focused on delivering results, not just completing the task I'm ready to start immediately and would be happy to discuss the details. Best regards, Umer
€40 EUR in 1 day
4.2
4.2

Hello, I hope this message finds you well. I'm very interested in working on Node.js Gmail Unread Email Logger and I'm confident I can provide the quality and professionalism you're looking for. With expert-level capabilities in JavaScript, Node.js, Email Handling, OAuth, Javascript ES6, API Integration, I bring both technical excellence and creative problem-solving. My work samples demonstrate advanced skills with projects showcasing innovation and efficiency. Let's connect to discuss how I can help bring Node.js Gmail Unread Email Logger to life. I'm available for a quick call at your convenience. Regards, Manisha
€140 EUR in 4 days
4.4
4.4

Svilengrad, Bulgaria
Payment method verified
Member since Sep 28, 2026
$10-30 USD
₹12500-37500 INR
$2-8 USD / hour
$250-750 USD
$8-15 USD / hour
$250-750 CAD
$30-250 USD
$250-750 USD
₹12500-37500 INR
$2-8 USD / hour
$250-750 USD
₹600-1500 INR
₹1500-12500 INR
€12-18 EUR / hour
₹12500-37500 INR
$10-30 USD
$10-30 USD
min $50 USD / hour
$2-8 USD / hour
₹750-1250 INR / hour