{ "info": { "author": "Joseph Kocherhans", "author_email": "jkocherhans@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Communications :: Email" ], "description": "maillib\n=======\n\nmaillib is a wrapper around Python's email package to provide simple and\nautomatic decoding of messages to unicode and several other conveniences.\n\nExample\n=======\n\n>>> import maillib\n>>> import datetime\n>>>\n>>> RAW_MESSAGE = \"\"\"\\\n... MIME-version: 1.0\n... Date: Sun, 25 Oct 2009 21:12:18 -0500\n... Message-id: \n... Subject: =?UTF-8?B?0JLQsNGI0YMg0LzRi9GB0LvRjA==?=\n... From: Sender \n... To: =?UTF-8?B?0JLQu9Cw0LTQuMyB0LzQuNGAINCc0LDRj9C60L7MgdCy0YHQutC40Lk=?=\n... \n... Content-type: multipart/alternative; boundary=001636ed670f4e3ad20476cd176b\n... \n... --001636ed670f4e3ad20476cd176b\n... Content-Type: text/plain; charset=UTF-8\n... Content-Transfer-Encoding: base64\n... \n... KtGB0L/QsNGB0LjQsdC+Kgo=\n... --001636ed670f4e3ad20476cd176b\n... Content-Type: text/html; charset=UTF-8\n... Content-Transfer-Encoding: quoted-printable\n... \n... =D1=81=D0=BF=D0=B0=D1=81=D0=\n... =B8=D0=B1=D0=BE\n... \n... --001636ed670f4e3ad20476cd176b--\n... \"\"\"\n>>> msg = maillib.Message.from_string(RAW_MESSAGE)\n>>> msg.subject\n\u0412\u0430\u0448\u0443 \u043c\u044b\u0441\u043b\u044c\n\n>>> msg.sender\n(u'Sender', u'sender@example.com')\n\n>>> msg.to\n(u'\u0412\u043b\u0430\u0434\u0438\u0301\u043c\u0438\u0440 \u041c\u0430\u044f\u043a\u043e\u0301\u0432\u0441\u043a\u0438\u0439' u'mayakovsky@example.com')\n\n>>> msg.date\ndatetime.datetime(2009, 10, 26, 2, 12, 18)\n\n>>> msg.body\n\u0441\u043f\u0430\u0441\u0438\u0431\u043e\n\n>>> msg.html\n\u0441\u043f\u0430\u0441\u0438\u0431\u043e", "description_content_type": null, "docs_url": "https://pythonhosted.org/maillib/", "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/jkocherhans/maillib", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "maillib", "package_url": "https://pypi.org/project/maillib/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/maillib/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/jkocherhans/maillib" }, "release_url": "https://pypi.org/project/maillib/0.1.3/", "requires_dist": null, "requires_python": null, "summary": "A simplified interface to Python's email package.", "version": "0.1.3" }, "last_serial": 794468, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "ab5a8488a6bb7265acfa22240a2adb03", "sha256": "8e18efb2348f90cc4ef2eb48fe99acce02d26ed6f8d7e16bdeda45537f2bc360" }, "downloads": -1, "filename": "maillib-0.1.tar.gz", "has_sig": false, "md5_digest": "ab5a8488a6bb7265acfa22240a2adb03", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3120, "upload_time": "2009-11-02T02:29:23", "url": "https://files.pythonhosted.org/packages/70/58/8997a55e611905d379d9a404dc07dd53484f6335bce29356ecf6b86c6c9e/maillib-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "05efe479da9a1dc72bfd04ae5537682e", "sha256": "7d3e5498689abc8360e414d28dbdbbd9cbfe6c4de155a8ab48347705ec6a03b4" }, "downloads": -1, "filename": "maillib-0.1.1.tar.gz", "has_sig": false, "md5_digest": "05efe479da9a1dc72bfd04ae5537682e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3429, "upload_time": "2009-11-02T03:11:29", "url": "https://files.pythonhosted.org/packages/f0/95/8ea8dec0ed3167ef2242e2513049a0e96fbdc29aeb5e3da64be2bbdc34a7/maillib-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "246487da879a7d6b8ca6ebb5bbd35d9f", "sha256": "90df11b675dda77d8522d9bdbc7cc3b9e30005d4f17627303c258c56531d54ad" }, "downloads": -1, "filename": "maillib-0.1.2.tar.gz", "has_sig": false, "md5_digest": "246487da879a7d6b8ca6ebb5bbd35d9f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3687, "upload_time": "2009-11-02T04:04:11", "url": "https://files.pythonhosted.org/packages/30/b6/2c8860ae3670283962739c70b3e498edae254d46a299199ce829015191dd/maillib-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "c155c6c17d6af7db1ce2c2b60e79c6d9", "sha256": "ea97bddee8d58bacbf96187eb456ce203dd642b412962d0191b02a6ad2edc4ff" }, "downloads": -1, "filename": "maillib-0.1.3.tar.gz", "has_sig": false, "md5_digest": "c155c6c17d6af7db1ce2c2b60e79c6d9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 63247, "upload_time": "2009-11-23T00:00:53", "url": "https://files.pythonhosted.org/packages/eb/6f/5c7bb366ae1df25835397c1bec9e41b2ce1e0cce481ab4a3c4e47fa17b8f/maillib-0.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c155c6c17d6af7db1ce2c2b60e79c6d9", "sha256": "ea97bddee8d58bacbf96187eb456ce203dd642b412962d0191b02a6ad2edc4ff" }, "downloads": -1, "filename": "maillib-0.1.3.tar.gz", "has_sig": false, "md5_digest": "c155c6c17d6af7db1ce2c2b60e79c6d9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 63247, "upload_time": "2009-11-23T00:00:53", "url": "https://files.pythonhosted.org/packages/eb/6f/5c7bb366ae1df25835397c1bec9e41b2ce1e0cce481ab4a3c4e47fa17b8f/maillib-0.1.3.tar.gz" } ] }