A package to fetch bounce emails and save them to an Excel file
Project description
Bounce Mail Identifier
A Python package to identify and handle bounced emails. This package allows you to fetch bounce emails from an IMAP server, extract sender and failed recipient information, and save the data to an Excel file.
Features
- Fetches bounce emails from an IMAP server.
- Extracts sender address and failed recipient email addresses.
- Saves bounce information to an Excel file.
- Easy to integrate and use.
Supported Email Providers
- Gmail
- Microsoft Outlook
- Yahoo Mail
- Any other IMAP-compatible email provider
Installation
To install this package, use pip:
pip install bounce-mail-identifier
Usage
Command Line
After installing, you can use the package from the command line.
fetch_bounces
As a Module
You can also use it as a module in your Python code.
from bounce_mail_identifier.bounce_mail_handler import fetch_bounce_emails, save_bounces_to_excel
# Provide your email credentials and server details
username = 'your-email@example.com'
app_password = 'your-app-password'
imap_server = 'imap.example.com'
# Fetch bounce emails
bounces = fetch_bounce_emails(username, app_password, imap_server)
# Save the bounces to an Excel file
save_bounces_to_excel(bounces, 'bounces.xlsx')
Dependencies
- pandas
- openpyxl
License
This project is licensed under the MIT License - see the LICENSE file for details.
Author
Around With Us - mscrabe@gmail.com
Acknowledgments
Contributing
If you'd like to contribute, please fork the repository and use a feature branch. Pull requests are welcome.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file bounce_mail_identifier-1.0.2.tar.gz
.
File metadata
- Download URL: bounce_mail_identifier-1.0.2.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1fdae4cce890d5b4223b862117460b494866d50888708fb503fd9980f32febac |
|
MD5 | efba98fb3f36ab54fa0b4d3d19e2fb8e |
|
BLAKE2b-256 | 019497d6f9866d0e9ef857c56aa182c81ede5ec5068ee27a025b68c7478c88c8 |
File details
Details for the file bounce_mail_identifier-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: bounce_mail_identifier-1.0.2-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a646412fd72302c387b2fa4047cdca5b0c2243a84facaa5ed627f3dda444d5a |
|
MD5 | 6114d3efb783b28b301f012b3285eb64 |
|
BLAKE2b-256 | 9bdc4bde17d95f8948cebc4984f31e3403290c5df10ad9c92627fdc550ccc042 |