Skip to main content

A module for processing Gmail messages.

Project description

Gmail Message Processor

The gmail_message_processor module is an essential part of the Gmail Label Email Processor toolkit, designed to fetch and process emails from Gmail based on specified labels. It leverages the Gmail API to retrieve email messages, enabling users to filter, extract, and process email data efficiently.

Features

  • Fetch emails from Gmail by label.
  • Process email messages to extract specific data such as 'To', 'Cc', 'Bcc', and email content.
  • Seamlessly integrates with the Gmail API Authentication and Label Management modules for comprehensive email handling.

Installation

Make sure you have Python 3.6 or higher installed. This module is a component of the Gmail Label Email Processor toolkit.

Proceed to install the necessary dependencies for the project.

Prerequisites

Before utilizing the gmail_message_processor, ensure that you have completed the authentication setup with gmail_api_auth.py and have identified the specific Gmail labels of interest using gmail_label_manager.py.

Usage

The gmail_message_processor module is designed to be used in conjunction with other components of the toolkit. Here's a basic usage example:

from gmail_message_processor import fetch_emails_by_label

# Specify the label name you're interested in
label_name = "YOUR_LABEL_NAME_HERE"

# Fetch and process emails by the specified label
processed_emails = fetch_emails_by_label(label_name)

# Continue with further processing or exporting

Replace "YOUR_LABEL_NAME_HERE" with the actual label you wish to process.

Contributing

Contributions to enhance the gmail_message_processor or any aspect of the Gmail Label Email Processor toolkit are highly appreciated.

License

This project is licensed under the MIT License - see the LICENSE for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gmail-message-processor-0.1.3.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gmail_message_processor-0.1.3-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

File details

Details for the file gmail-message-processor-0.1.3.tar.gz.

File metadata

  • Download URL: gmail-message-processor-0.1.3.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.3

File hashes

Hashes for gmail-message-processor-0.1.3.tar.gz
Algorithm Hash digest
SHA256 1324029a84efc34c17cf9b64bf6163fde0831e2f370a562eb34958f473db59ce
MD5 85b428d8ba7f7c9da5463a578ab0a229
BLAKE2b-256 db6fc5d785fef2c32b6a4539af19d4fd73cc93bd9369e2ca6a0f279d5d6a8362

See more details on using hashes here.

File details

Details for the file gmail_message_processor-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for gmail_message_processor-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e938d23beaa2785c7683430b1f7a747f0d595f925204269075346389d0eca6f2
MD5 33697fbe8edad091bd289b058035c00d
BLAKE2b-256 ce22f00d9020b0d82ab48d45d9c1a337be8779a6049d535f30d665fbc8fd586f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page