Skip to main content

An IMAP queue package

Project description

pyimapq

This package uses any IMAP server as a python queue, allowing processes in separate domains to communicate over EMAIL.

All you need is an IMAP account, and you are good to go.

Example usage:

from pyimapq import PyImapQ


mq = PyImapQ(user='my_user', password='very strong password')
assert mq.connected

def flt(subject):
	return subject in ['a', 'list', 'of', 'subjects', 'to', 'accept']

msgs = mq.get_unread_emails(flt, mark_as_read=True)

# msgs will now hold the email itself. You can use mq.get_body(msg) to get the
# body, or msg['Subject'], etc, to access the message meta data

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

pyimapq-0.0.1-py3-none-any.whl (1.5 kB view details)

Uploaded Python 3

File details

Details for the file pyimapq-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: pyimapq-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 1.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.3

File hashes

Hashes for pyimapq-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ea167bbcdd886bf3599c1c0128d81a9ba74de4cad6a198ca2489605fcfa61126
MD5 a3cf349e1f1129c665e0c96fe005c731
BLAKE2b-256 521ee4b82b265a6488de39c63a6852f5fd7b31f8564c13ad55665545ef0c2491

See more details on using hashes here.

Supported by

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