{ "info": { "author": "Zope Foundation and Contributors", "author_email": "zope-dev@zope.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 6 - Mature", "Environment :: Web Environment", "Framework :: Zope", "Framework :: Zope :: 4", "License :: OSI Approved :: Zope Public License", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: Implementation :: CPython", "Topic :: Communications :: Email" ], "description": "Products.MIMETools\n==================\n\nCurrently, the MIMETools product's only function is to provide the\n```` DTML tag for the DocumentTemplate distribution.\n\nThe ```` tag is used to construct MIME containers. The syntax of the\n```` tag is::\n\n \n Contents of first part\n \n Contents of second part\n \n Contents of nth part\n \n\nThe area of data between tags, called a block, is encoded into whatever is\nspecified with the 'encode' tag attribute for that block. If no encoding is\nspecified, 'base64' is defaulted. Valid encoding options include 'base64',\n'quoted-printable' and '7bit' . If the 'encode' attribute is set to '7bit'\nno encoding is done on the block and the data is assumed to be in a valid MIME\nformat.\n\nIf the 'disposition' attribute is not specified for a certain block, then the\n'Content-Disposition:' MIME header is not included in that block's MIME part.\n\nThe entire MIME container, from the opening mime tag to the closing, has it's\n'Content-Type:' MIME header set to 'multipart/mixed'.\n\nFor example, the following DTML::\n\n \n This is the first part.\n \n This is the second.\n \n\nIs rendered to the following text::\n\n Content-Type: multipart/mixed;\n boundary=\"216.164.72.30.501.1550.923070182.795.22531\"\n\n --216.164.72.30.501.1550.923070182.795.22531\n Content-Type: text/plain\n Content-Transfer-Encoding: 7bit\n\n This is the first part.\n\n --216.164.72.30.501.1550.923070182.795.22531\n Content-Type: text/plain\n Content-Transfer-Encoding: base64\n\n VGhpcyBpcyB0aGUgc2Vjb25kLgo=\n\n --216.164.72.30.501.1550.923070182.795.22531--\n\nThe ``dtml-mime`` tag is particularly handy in conjunction with the\n``dtml-sendmail`` tag. This allows Zope to send attachments along with email.\nHere is an example.\n\nCreate a DTML method called 'input' with the following code::\n\n \n
\n
\n Send to:
\n \n
\n \n\nCreate another DTML Method called 'send' with the following code::\n\n \n \n From: michel@digicool.com\n To: \n \n\n Hi , someone sent you this attachment.\n\n \n\n \n\n Mail with attachment was sent.\n \n\n\nNotice that there is no blank line between the 'To:' header and the starting\n``dtml-mime`` tag. If a blank line is inserted between them then the message\nwill not be interpreted as multipart by the receiving mail reader.\n\nAlso notice that there is no newline between the ``dtml-boundary`` tag and the\n``dtml-var`` tag, or the end of the ``dtml-var`` tag and the closing\n``dtml-mime`` tag. This is important, if you break the tags up with newlines\nthen they will be encoded and included in the MIME part, which is probably not\nwhat you want.\n\nAs per the MIME spec, ``dtml-mime`` tags may be nested within ``dtml-mime``\ntags arbitrarily.\n\nChangelog\n=========\n\n3.0 (2019-05-20)\n----------------\n- Reimplemented using Python's ``email`` module\n\n- Added support for Python 3.5, 3.6, 3.7 and 3.8\n\n- Switched documentation to standard ``dtml`` notation\n\n- Added ``tox`` testing configuration\n\n- Full linting\n\n- Boosted test coverage to over 90%\n\n- Compatible with DocumentTemplate 3.x and Zope 4\n\n\n2.13.0 (2010-07-10)\n-------------------\n- PEP8 cleanup and added basic tests.\n\n- Released as separate package.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/zopefoundation/Products.MIMETools", "keywords": "", "license": "ZPL 2.1", "maintainer": "", "maintainer_email": "", "name": "Products.MIMETools", "package_url": "https://pypi.org/project/Products.MIMETools/", "platform": "", "project_url": "https://pypi.org/project/Products.MIMETools/", "project_urls": { "Homepage": "https://github.com/zopefoundation/Products.MIMETools", "Issue Tracker": "https://github.com/zopefoundation/Products.MIMETools/issues", "Sources": "https://github.com/zopefoundation/Products.MIMETools" }, "release_url": "https://pypi.org/project/Products.MIMETools/3.0/", "requires_dist": [ "setuptools", "six", "ExtensionClass (>=4.1a1)", "DocumentTemplate (>=3)" ], "requires_python": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*", "summary": "MIMETools provides the ``dtml-mime`` tag for DocumentTemplate.", "version": "3.0" }, "last_serial": 5294406, "releases": { "2.13.0": [ { "comment_text": "", "digests": { "md5": "ad5372fc1190599a19493db0864448ec", "sha256": "bb0f1384235813372b6a2e5ddcf60ac2dfd8903a7d5241a79d388dcfafca5bb7" }, "downloads": -1, "filename": "Products.MIMETools-2.13.0.zip", "has_sig": false, "md5_digest": "ad5372fc1190599a19493db0864448ec", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15279, "upload_time": "2010-07-10T11:10:32", "url": "https://files.pythonhosted.org/packages/30/53/9e08e6a2f5e1c12b1d450c78025a54edbd70e40a15191de9e81839bad53a/Products.MIMETools-2.13.0.zip" } ], "3.0": [ { "comment_text": "", "digests": { "md5": "865be0c1e7f6ad44feb7c88432563a0b", "sha256": "b0b562f3f5573f85656c10ed126b1dd17bfccf311b144bdc344df274473074fa" }, "downloads": -1, "filename": "Products.MIMETools-3.0-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "865be0c1e7f6ad44feb7c88432563a0b", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*", "size": 9488, "upload_time": "2019-05-20T21:59:35", "url": "https://files.pythonhosted.org/packages/f8/90/50156ae4d646052bb5ff0a66eb1c7d5d952f13f37e4e0670f9fb28707f99/Products.MIMETools-3.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0ce93e8a222609e02ca810e946812055", "sha256": "f24049e94f23a2b47c863ed022720a3b0da00073e2b62cad567efa299eb81e7a" }, "downloads": -1, "filename": "Products.MIMETools-3.0.tar.gz", "has_sig": true, "md5_digest": "0ce93e8a222609e02ca810e946812055", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*", "size": 8837, "upload_time": "2019-05-20T21:59:41", "url": "https://files.pythonhosted.org/packages/0a/79/6f511fa46e1a1db1a1c0ddd56585c6ac9deb7ede0c655dc8ca7403a25dd4/Products.MIMETools-3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "865be0c1e7f6ad44feb7c88432563a0b", "sha256": "b0b562f3f5573f85656c10ed126b1dd17bfccf311b144bdc344df274473074fa" }, "downloads": -1, "filename": "Products.MIMETools-3.0-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "865be0c1e7f6ad44feb7c88432563a0b", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*", "size": 9488, "upload_time": "2019-05-20T21:59:35", "url": "https://files.pythonhosted.org/packages/f8/90/50156ae4d646052bb5ff0a66eb1c7d5d952f13f37e4e0670f9fb28707f99/Products.MIMETools-3.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0ce93e8a222609e02ca810e946812055", "sha256": "f24049e94f23a2b47c863ed022720a3b0da00073e2b62cad567efa299eb81e7a" }, "downloads": -1, "filename": "Products.MIMETools-3.0.tar.gz", "has_sig": true, "md5_digest": "0ce93e8a222609e02ca810e946812055", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*", "size": 8837, "upload_time": "2019-05-20T21:59:41", "url": "https://files.pythonhosted.org/packages/0a/79/6f511fa46e1a1db1a1c0ddd56585c6ac9deb7ede0c655dc8ca7403a25dd4/Products.MIMETools-3.0.tar.gz" } ] }