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.

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


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.2.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

bounce_mail_identifier-1.0.2-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for bounce_mail_identifier-1.0.2.tar.gz
Algorithm Hash digest
SHA256 1fdae4cce890d5b4223b862117460b494866d50888708fb503fd9980f32febac
MD5 efba98fb3f36ab54fa0b4d3d19e2fb8e
BLAKE2b-256 019497d6f9866d0e9ef857c56aa182c81ede5ec5068ee27a025b68c7478c88c8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bounce_mail_identifier-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8a646412fd72302c387b2fa4047cdca5b0c2243a84facaa5ed627f3dda444d5a
MD5 6114d3efb783b28b301f012b3285eb64
BLAKE2b-256 9bdc4bde17d95f8948cebc4984f31e3403290c5df10ad9c92627fdc550ccc042

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