Skip to main content

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.

For example, to add an address manually (the display name is optional):

$ addrcollector add jon@example.com "Jon Smith"
$ addrcollector add sven@example.com

To import addresses from a message passed on standard input:

$ addrcollector import < mymail.msg

To search for addresses using keywords (multiple keywords may be given and are ORed):

$ addrcollector search jon sven
2020-07-03 jon@example.com                Jon Smith
2020-07-03 sven@example.com

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

Release files for addrcollector 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for addrcollector 2.0.0
File Size Uploaded
addrcollector-2.0.0.tar.gz 7.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for addrcollector 2.0.0
File Interpreter ABI Platform
addrcollector-2.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 15.8 kB

Release files / addrcollector-2.0.0.tar.gz

Download URL addrcollector-2.0.0.tar.gz
Size 7.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e2a0002ec0270d3ac049032d6b853f39b5d25379cbd01e33074f0d28ef20c2ad
BLAKE2b-256 checksum
How to use checksums
6ea49a886f7154185e77854e459a6d99d656116c4ee51ad3612b41f4f51bdd94
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.5 CPython/3.7.3 Linux/4.19.0-9-amd64

Release files / addrcollector-2.0.0-py3-none-any.whl

Download URL addrcollector-2.0.0-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2e1b7bde2094bb2cc8caaaeaac9794fadc27665bc2c5410bbb2e911e90715542
BLAKE2b-256 checksum
How to use checksums
82457f53b813a59c61a37352003791dec6848c84216752b19dc78ef0db7fc3d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.5 CPython/3.7.3 Linux/4.19.0-9-amd64

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page