[Zope-CMF] Re: [dev] email_charset: a small proposal

Wichert Akkerman wichert at wiggy.net
Thu Oct 12 13:43:50 EDT 2006


Previously Tres Seaver wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> yuppie wrote:
> > Hi!
> > 
> > 
> > CMFDefault's RegistrationTool sends welcome messages and password
> > reminders as email. Currently
> > 
> > a) the body is encoded with the default_charset and
> > 
> > b) the headers are not correctly encoded.
> > 
> > 
> > I'd like to add an 'email_charset' property to the site (making it
> > possible to use e.g. iso-8859-1 for emails and utf-8 for site content)
> > and to fix the header encoding.
> > 
> > This will also require one or two new helper methods in CMFDefault.utils
> > that provide some functionality from Python's email package in TTW code.
> > 
> > Please let me know if you have any objections or if you plan to
> > contribute a more sophisticated solution. While this also fixes some
> > bugs I plan to change this only on the trunk.
> 
> Aren't RFC822-compliant e-mails 7-bit only in the headers?

In the RFC2822 world we can encode headers.

Wichert.

-- 
Wichert Akkerman <wichert at wiggy.net>    It is simple to make things.
http://www.wiggy.net/                   It is hard to make things simple.


More information about the Zope-CMF mailing list