Metadata-Version: 2.1
Name: gmail-message-processor
Version: 0.1.0
Summary: A module for processing Gmail messages.
Home-page: https://github.com/SokinjoNS/gmail-message-processor
Author: SokinjoNS
Author-email: sokinjo.155@gmail.com
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Description-Content-Type: text/markdown
Requires-Dist: gmail-api-auth >=0.1.0
Requires-Dist: gmail-label-manager >=0.1.0

# 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:

```bash
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.
