{ "info": { "author": "Maurits van Rees", "author_email": "maurits@vanrees.org", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python", "Topic :: Communications :: Email" ], "description": "Introduction\n============\n\n``smtp2zope`` is a script that takes an email as input, does some\ntransformation, and submits it to a backend server using a url.\nTraditionally, Zope is expected to be the receiving server, hence the\nname, but should work fine for other servers too.\n\nOriginally, the code here comes from the MailBoxer_ product for Zope.\n\n.. _MailBoxer: http://www.iungo.org/products/MailBoxer\n\n\nUsage\n-----\n\nWhen installing this package, a ``smtp2zope`` script is generated.\nThe script reads from standard input and expects a url and optional\nmaximum number of bytes as arguments::\n\n smtp2zope URL [MAXBYTES]\n\nURL:\n\n call this URL with the email as a post-request. Authentication can\n be included in URL: http://username:password@example.org/some-page\n\nMAXBYTES:\n\n optional: only forward mails with a size of less than MAXBYTES to\n the URL\n\nSo a test run could look like this::\n\n cat testmail.txt > /path/to/smtp2zope http://admin:secret@example.org/my-mail-handler\n\n\nMail server integration\n-----------------------\n\nMail comes in through a mail server. So when you want mail for\n``mailme@example.org`` to be handled by smtp2zope and sent to your web\nserver, you should add an alias in your smtp server configuration.\nSomething like this probably works (there might be slight differences\ndepending on which mail server you use)::\n\n mailme@example.org \"|/path/to/smtp2zope http://admin:secret@example.org/my-mail-handler 1000000\"\n\nThe number at the end restricts the maximum size of a message; this is\noptional, but highly recommended.\n\n\nDebugging\n---------\n\nPlease note: output is logged to maillog per default on unices. See\nyour maillog (e.g. ``/var/log/mail.log``) to debug problems with the setup.\n\n\nBuildout\n--------\n\nIf you like setting up your project with zc.buildout (I myself do),\nthis simple snippet is enough to create the ``bin/smtp2zope`` script::\n\n [script]\n recipe = zc.recipe.egg\n eggs = smtp2zope\n\n\nCredits\n-------\n\n- Original implementation: Maik Jablonski\n\n- Packaging: Maurits van Rees\n\nChangelog\n=========\n\n1.2 (2012-10-14)\n----------------\n\n- Moved to https://github.com/collective/smtp2zope\n [maurits]\n\n\n1.1 (2011-05-05)\n----------------\n\n- Use a better way to determine the basic authentication information\n that is passed in the url so the logic does not fail when the url\n has an ``@`` sign somewhere else.\n [maurits]\n\n- Fixed error \"local variable 'AUTHORIZATION' referenced before\n assignment\" when not using basic authentication\n (http://user:pw@example.com).\n [maurits]\n\n\n1.0 (2011-05-04)\n----------------\n\n- Initial release", "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/collective/smtp2zope", "keywords": "", "license": "GPL", "maintainer": null, "maintainer_email": null, "name": "smtp2zope", "package_url": "https://pypi.org/project/smtp2zope/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/smtp2zope/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/collective/smtp2zope" }, "release_url": "https://pypi.org/project/smtp2zope/1.2/", "requires_dist": null, "requires_python": null, "summary": "Read an email from stdin and forward it to a url", "version": "1.2" }, "last_serial": 748375, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "be2308b0bda491c6abcd9a486a5371ab", "sha256": "c2a1484ff55ab82188e5c45c88e48e4cd59865ecfda8426dcacdde567751f8d9" }, "downloads": -1, "filename": "smtp2zope-1.0.zip", "has_sig": false, "md5_digest": "be2308b0bda491c6abcd9a486a5371ab", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24926, "upload_time": "2011-05-04T17:45:08", "url": "https://files.pythonhosted.org/packages/b5/b7/a9bd9b7f23ae5c25f0ea8bb398740d092941eaaf3b18df1de621120c4604/smtp2zope-1.0.zip" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "abfd42023341c97eb8ebb220d99f84ce", "sha256": "b525cfd814e79a31725a8b4252bc1221a92c5334e3c0b732efdcc7db78d24cc5" }, "downloads": -1, "filename": "smtp2zope-1.1.zip", "has_sig": false, "md5_digest": "abfd42023341c97eb8ebb220d99f84ce", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25576, "upload_time": "2011-05-05T00:34:31", "url": "https://files.pythonhosted.org/packages/76/9e/2e60ce6338141c9f444f55d224b9436c0eac6bcbd8b373c4f8ecc5aefbc6/smtp2zope-1.1.zip" } ], "1.2": [ { "comment_text": "", "digests": { "md5": "84cf3b47cdce4755045e3218ecd0b716", "sha256": "9c38be38c4e9b967dccb47d1df6149dcdadccf1f0ca94349afe789d12f84bcf9" }, "downloads": -1, "filename": "smtp2zope-1.2.zip", "has_sig": false, "md5_digest": "84cf3b47cdce4755045e3218ecd0b716", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 27233, "upload_time": "2012-10-14T00:48:24", "url": "https://files.pythonhosted.org/packages/f2/93/b741d8e6a9036b6b426472a93f36a570a393aaa23c96da054cc38bada206/smtp2zope-1.2.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "84cf3b47cdce4755045e3218ecd0b716", "sha256": "9c38be38c4e9b967dccb47d1df6149dcdadccf1f0ca94349afe789d12f84bcf9" }, "downloads": -1, "filename": "smtp2zope-1.2.zip", "has_sig": false, "md5_digest": "84cf3b47cdce4755045e3218ecd0b716", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 27233, "upload_time": "2012-10-14T00:48:24", "url": "https://files.pythonhosted.org/packages/f2/93/b741d8e6a9036b6b426472a93f36a570a393aaa23c96da054cc38bada206/smtp2zope-1.2.zip" } ] }