Skip to main content

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


Download files

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

Source Distribution

bounce_mail_identifier-1.0.1.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

bounce_mail_identifier-1.0.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file bounce_mail_identifier-1.0.1.tar.gz.

File metadata

File hashes

Hashes for bounce_mail_identifier-1.0.1.tar.gz
Algorithm Hash digest
SHA256 ab6008ac8a89863dcd3960c05028c9b8a9d69d503987cc763d186bb5062bf235
MD5 b7bbcf2bc97ae514bc10f31dac05bf29
BLAKE2b-256 6f152fa6b14de715e1fe4da7ff96d0eb4bda9799f512b8dca8de866df351c178

See more details on using hashes here.

File details

Details for the file bounce_mail_identifier-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for bounce_mail_identifier-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 87a72e68bb487e49936efdefe829ba92ee072a8a8a92f89ce955bf986456a08a
MD5 0a8f7cf38246838540be30556bc0fe71
BLAKE2b-256 9c54125968476dafffcfbc16a2c643b681f3e7560759edc19294c0f11080c60d

See more details on using hashes here.

Supported by

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