Skip to main content

a mail retrieval, sorting, and delivering system

Project description

getmail6 is a flexible, extensible mail retrieval system with support for POP3, IMAP4, SSL variants of both, maildirs, mboxrd files, external MDAs, arbitrary message filtering, single-user and domain-mailboxes, and many other useful features.

getmail is Copyright (C) 1998-2021 Charles Cazabon and others. getmail is licensed for use under the GNU General Public License version 2 (only). See docs/COPYING for specific terms and distribution information.

getmail6 has adaptations to work with Python 3. These changes might still contain some bugs. Please report them at https://github.com/getmail6/getmail6. See docs/BUGS for instructions on reporting bugs.

getmail6 will probably not work with Python versions older than 2.7. Use getmail 5.14 with them.

Installation

To install:

pip install getmail6

To uninstall:

pip uninstall getmail6

You can install getmail6 in your home directory if you add --user.

If getmail6 is available via your Linux distribution, you better use that.

Usage

getmail6 is not a python API. getmail6 provides command line tools:

  • getmail

  • getmail_maildir,

  • getmail_mbox

  • getmail_fetch

  • getmail-gmail-xoauth-tokens

Before using getmail you must configure it. See docs/configuration.txt and docs/getmailrc-examples. An example:

[retriever]
type = SimpleIMAPSSLRetriever
server = imap.gmail.com
port = 993
username = <your_email_here>
#password = ... or
password_command = ("pass", "<your_email_here>")

[destination]
type = Maildir
path = ~/Mail/<your_email_here>/INBOX/

[options]
read_all = true
delete = true

Tests

getmail 5.14 did not come with tests.

There is now a test folder that uses docker-mailserver for black box testing.

This still tests Python 2.7.

Tests are work in progress.

Documentation

See the HTML documentation for details on setting up and using getmail. It is included in the docs subdirectory, and will be installed in <PREFIX>/doc/getmail-<version>/ (by default).

docs/documentation.txt
docs/configuration.txt
docs/faq.txt
docs/troubleshooting.txt

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

getmail6-6.18.5-py3-none-any.whl (221.0 kB view details)

Uploaded Python 3

File details

Details for the file getmail6-6.18.5-py3-none-any.whl.

File metadata

  • Download URL: getmail6-6.18.5-py3-none-any.whl
  • Upload date:
  • Size: 221.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.7.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for getmail6-6.18.5-py3-none-any.whl
Algorithm Hash digest
SHA256 dd18b3955bc542093b9ee83884cea6b8fb652b2e65534d1088026efd14ea2524
MD5 c090a970d67d24a268eb679df6432567
BLAKE2b-256 52844e82a9e88d2688e5b2f2f986154bfe83d9c11017a21531b096924829b7ec

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