{ "info": { "author": "Kirill Bubochkin", "author_email": "ookami.kb@gmail.com", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4" ], "description": "Imbox - Python IMAP for Humans\n=======\n\n[![Build Status](https://travis-ci.org/ookami-kb/imbox.svg?branch=master)](https://travis-ci.org/ookami-kb/imbox)\n\n\nPython library for reading IMAP mailboxes and converting email content to machine readable data\n\nInstallation\n============\n\n\tpip install https://github.com/ookami-kb/imbox/archive/master.zip\n\n\nUsage \n=====\n\n```python\nfrom imbox import Imbox\n\nimbox = Imbox('imap.gmail.com',\n\t\t\t username='username', \n\t\t\t password='password',\n\t\t\t ssl=True)\n\n# Gets all messages \nall_messages = imbox.messages()\n\n# Unread messages \nunread_messages = imbox.messages(unread=True)\n\n# Messages sent FROM\nmessages_from = imbox.messages(sent_from='martin@amon.cx')\n\n# Messages sent TO\nmessages_from = imbox.messages(sent_to='martin@amon.cx')\n\n# Messages received before specific date\nmessages_from = imbox.messages(date__lt='31-July-2013')\n\n# Messages received after specific date\nmessages_from = imbox.messages(date__gt='30-July-2013')\n\n# Messages from a specific folder \nmessages_folder = imbox.messages(folder='Social')\n\n\n\nfor uid, message in all_messages:\n\t........\n# Every message is an object with the following keys\n\t\n\tmessage.sent_from\n\tmessage.sent_to\n\tmessage.subject\n\tmessage.headers\n\tmessage.message_id\n\tmessage.date\n\tmessage.body.plain\n\tmessage.body.html\n\tmessage.attachments\n\n# To check all available keys\n\tprint message.keys()\n\n\n# To check the whole object, just write\n\n\tprint message\n\n\t{\n\t'headers': \n\t\t[{\n\t\t\t'Name': 'Received-SPF',\n\t\t\t'Value': 'pass (google.com: domain of ......;'\n\t\t}, \n\t\t{\n\t\t\t'Name': 'MIME-Version',\n\t\t\t'Value': '1.0'\n\t\t}],\n\t'body': {\n\t\t'plain: ['ASCII'],\n\t\t'html': ['HTML BODY']\n\t},\n\t'attachments': [{\n\t\t'content': , \n\t\t'filename': \"avatar.png\",\n\t\t'content-type': 'image/png',\n\t\t'size': 80264\n\t}],\n\t'date': u 'Fri, 26 Jul 2013 10:56:26 +0300',\n\t'message_id': u '51F22BAA.1040606',\n\t'sent_from': [{\n\t\t'name': u 'Martin Rusev',\n\t\t'email': 'martin@amon.cx'\n\t}],\n\t'sent_to': [{\n\t\t'name': u 'John Doe',\n\t\t'email': 'john@gmail.com'\n\t}],\n\t'subject': u 'Hello John, How are you today'\n\t}\n```\n\nRoadmap \n========\n* Lazy email fetching\n* Improved attachement handling\n* Search mailboxes\n* Manage labels\n* Delete emails \n* Compose emails", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ookami-kb/imbox", "keywords": "email,IMAP,parsing emails", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "swdt-imbox", "package_url": "https://pypi.org/project/swdt-imbox/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/swdt-imbox/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/ookami-kb/imbox" }, "release_url": "https://pypi.org/project/swdt-imbox/0.5.6/", "requires_dist": null, "requires_python": null, "summary": "Python IMAP for Human beings. Python3 only", "version": "0.5.6" }, "last_serial": 1720712, "releases": { "0.5.6": [ { "comment_text": "", "digests": { "md5": "a043cdbd862b471ce8eec70876f17cf9", "sha256": "7f0b0c4799706fb37d23d29f006073f97babd9c1980e0a6ed8d5feb727ebe3e6" }, "downloads": -1, "filename": "swdt-imbox-0.5.6.tar.gz", "has_sig": false, "md5_digest": "a043cdbd862b471ce8eec70876f17cf9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6204, "upload_time": "2015-09-13T14:16:56", "url": "https://files.pythonhosted.org/packages/79/4b/aff17550a72ff3240ac8577fec5f7415f020f74a744cae06da37757a68ae/swdt-imbox-0.5.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a043cdbd862b471ce8eec70876f17cf9", "sha256": "7f0b0c4799706fb37d23d29f006073f97babd9c1980e0a6ed8d5feb727ebe3e6" }, "downloads": -1, "filename": "swdt-imbox-0.5.6.tar.gz", "has_sig": false, "md5_digest": "a043cdbd862b471ce8eec70876f17cf9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6204, "upload_time": "2015-09-13T14:16:56", "url": "https://files.pythonhosted.org/packages/79/4b/aff17550a72ff3240ac8577fec5f7415f020f74a744cae06da37757a68ae/swdt-imbox-0.5.6.tar.gz" } ] }