Skip to main content

This package makes reading emails from Enron dataset easy.

Project description

Installation

pip3 install enron_reader

Prerequisites

For using this package, you must have the Enron email corpus locally. If you don’t, either download and extract it using the link provided here, or run

download_enron /path/to/download/enron

in your terminal after installing this package.

Then, you should have a folder named ‘maildir’ in that directory. It should contain a directory for each user (Enron employee)

Usage example

from enron_reader import EnronReader
reader = EnronReader("/path/to/enron/root")

print(reader.get_user_ids())

mailbox = reader.get_mailbox_for_user("keiser-k")

main_folders = mailbox.root_folder.subfolders
some_message = main_folders[0].messages[0]

print(some_message.subject)

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

enron_reader-0.25.tar.gz (6.3 kB view details)

Uploaded Source

File details

Details for the file enron_reader-0.25.tar.gz.

File metadata

  • Download URL: enron_reader-0.25.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for enron_reader-0.25.tar.gz
Algorithm Hash digest
SHA256 2da455fed003f05d72a80b1b50775ff6782fb9ba824c99fe20cf3375a59091ce
MD5 93bec5000f49739e53f103b0864c6f3c
BLAKE2b-256 06d5fa170827ebe41e627d3dc0a9bfdfc0d5f21d1b08ad61d53a510d1b551934

See more details on using hashes here.

Supported by

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