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.
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.1.tar.gz
.
File metadata
- Download URL: bounce_mail_identifier-1.0.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab6008ac8a89863dcd3960c05028c9b8a9d69d503987cc763d186bb5062bf235 |
|
MD5 | b7bbcf2bc97ae514bc10f31dac05bf29 |
|
BLAKE2b-256 | 6f152fa6b14de715e1fe4da7ff96d0eb4bda9799f512b8dca8de866df351c178 |
File details
Details for the file bounce_mail_identifier-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: bounce_mail_identifier-1.0.1-py3-none-any.whl
- Upload date:
- Size: 4.1 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 | 87a72e68bb487e49936efdefe829ba92ee072a8a8a92f89ce955bf986456a08a |
|
MD5 | 0a8f7cf38246838540be30556bc0fe71 |
|
BLAKE2b-256 | 9c54125968476dafffcfbc16a2c643b681f3e7560759edc19294c0f11080c60d |