[Zope] MIMETools

Michel Pelletier michel@digicool.com
Fri, 2 Apr 1999 12:13:07 -0500


Greetings,

I am looking for people to test the new MIMETools Component.  MIMETools
add the <!--#mime--> tag to DTML.  It does not supply any objects that
can be added to Zope.  It is important to remember that this is alpha
software and may not work as show here, or at all.  YMMV (Your MIME may
vary).

The #mime tag is a container tag that formats it's contents into a valid
MIME container.  A quick example usage is:

  <!--#mime encode=7bit type=text/plain-->
  This is the first part.
  <!--#boundary encode=base64 type=text/plain-->
  This is the second.
  <!--#/mime-->

This will rendered to the following:

  Content-Type: multipart/mixed;
      boundary="216.164.72.30.501.1550.923070182.795.22531"


  --216.164.72.30.501.1550.923070182.795.22531
  Content-Type: text/plain
  Content-Transfer-Encoding: 7bit

  This is the first part.

  --216.164.72.30.501.1550.923070182.795.22531
  Content-Type: text/plain
  Content-Transfer-Encoding: base64

  VGhpcyBpcyB0aGUgc2Vjb25kLgo=

  --216.164.72.30.501.1550.923070182.795.22531--


The tag is documented in the MIMETools README.txt file.  The #mime tag
is particulary handy in conjunction with the #sendmail tag, and an
example is given in the README.txt.

The MIMETools component can be downloaded from:

http://www.zope.org/Download/Prereleases/MIMETools/


Regards,

-Michel