Skip to main content

A Python application for collecting email addresses from email messages

Project description

A Python application for collecting email addresses from email messages

About

addrcollector collects email addresses from email messages. This is similar to Thunderbird’s “Collected Addresses” feature and corresponding functionality in other software. In the case of addrcollector, however, email messages are read from standard input, or manually on the command line, and the email address database can be queried by keyword.

It is possible for addrcollector to be integrated with a mail delivery system like Procmail or Maildrop to collect addresses from all messages, or with mail clients like Mutt or Alpine to collect addresses selectively.

Dates and display names are also collected. If an address is seen more than once, then (1) the date is updated and (2) the display name is updated if the new one is longer than the old one.

$ addrcollector --help
addrcollector: Collect email addresses for later retrieval, or
search the database of previously collected addresses.

Usage:
  addrcollector.py --add ADDRESS [NAME]
  addrcollector.py --import
  addrcollector.py --search WORD...
  addrcollector.py --help

Options, arguments, and commands:
  -a --add      Manually add an address.
  ADDRESS       Email address to add to database.
  NAME          Name to associate with email address (optional).
  -i --import   Import addresses from headers of one message via standard input.
  -s --search   Search database for addresses; multiple keys are ORed.
  WORD          Search key.
  -h --help     Usage help.

Installing from PyPI

addrcollector is published on PyPI and can be installed with pip.

  1. Install the addrcollector package.

    $ pip3 install addrcollector

    This should provide a ~/.local/bin/addrcollector script that you can execute.

  2. If that path is included in your PATH environment variable, you can run the addrcollector command without typing the entire path., To set up this, if it hasn’t been done already, add the following code in your ~/.bash_profile (it may be ~/.profile for a shell other than Bash):

    if [ -d "$HOME/.local/bin" ] ; then
        PATH="$HOME/.local/bin:$PATH"
    fi

Running from repository

If you have cloned the repository, you can run addrcollector from it directly.

  1. Install Poetry:

    $ pip3 install poetry
  2. With the addrcollector repository root as your current directory, use Poetry to install the dependencies:

    $ poetry install
  3. Now that the dependencies have been installed, use Poetry to run addrcollector:

    $ poetry run addrcollector

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

addrcollector-1.0.2.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

addrcollector-1.0.2-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: addrcollector-1.0.2.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.7.3 Linux/4.19.0-9-amd64

File hashes

Hashes for addrcollector-1.0.2.tar.gz
Algorithm Hash digest
SHA256 b102c5563ce4d3d11807d5c00cbf89829131093f7d86834cbe10d15242333afb
MD5 eecda58b18b80833d732874ad819487e
BLAKE2b-256 9d5432948c1278eda84c3628709afec9b75f3aa63bb22ec0e139697d80a1643d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: addrcollector-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.7.3 Linux/4.19.0-9-amd64

File hashes

Hashes for addrcollector-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a5a14ff7ef7e74fb2e29367ed44e8ea6942db42e4993ab828dad9d1e19fb389c
MD5 7f61dba93a5af093f5d014f22d5bebbc
BLAKE2b-256 3896e051a075ac501c9c66fd1ad408a652f43813eebf2357c84d7669f099d55e

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