From barry at python.org Sun Mar 5 22:10:38 2006 From: barry at python.org (Barry Warsaw) Date: Sun, 05 Mar 2006 16:10:38 -0500 Subject: [Email-SIG] email package 4.0a2 Message-ID: <1141593038.10806.118.camel@resist.wooz.org> I'm happy to announce the release of the email 4.0a2 standalone package. This is the latest version of the email package and will be released with Python 2.5. The major changes between this version and email 3.0 (released with Python 2.4) is: * All modules have been renamed according to PEP 8 standards. For example, email.Message was renamed to email.message. * A new subpackage email.mime was added and all the email.MIME* modules renamed to live inside this subpackage. For example, email.MIMEText is now email.mime.text * A new class email.mime.application.MIMEApplication has been added to support application/* content types (thanks Keith Dart). * Methods that were deprecated in version 3 have been removed: Generator.__call__(), Message.get_type(), Message.get_main_type(), and Message.get_subtype() Note that the old, email version 3 package names are still supported for backward compatibility, so you won't have to change existing code. New code should use the new names as the old names will go away in Python 2.6. Also note that email.mime.application is /not/ provided as email.MIMEApplication. There are also many bug fixes and updated documentation. More information and links for downloading are available in the cheeseshop: http://cheeseshop.python.org/pypi/email/4.0a2 Barring any complications, this version will be merged into the Python 2.5 subversion tree in a week or so. Enjoy, -Barry -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 309 bytes Desc: This is a digitally signed message part Url : http://mail.python.org/pipermail/email-sig/attachments/20060305/9ba3d504/attachment.pgp From barry at python.org Mon Mar 6 03:02:06 2006 From: barry at python.org (Barry Warsaw) Date: Sun, 05 Mar 2006 21:02:06 -0500 Subject: [Email-SIG] email package 3.0.1 Message-ID: <1141610526.10807.132.camel@resist.wooz.org> I'm happy to announce the release of the email 3.0.1 standalone package. This is the latest version of the email package that will be released with Python 2.4.3. This is a bug fix release. More information and links for downloading are available in the cheeseshop: http://cheeseshop.python.org/pypi/email/3.0.1 Enjoy, -Barry -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 309 bytes Desc: This is a digitally signed message part Url : http://mail.python.org/pipermail/email-sig/attachments/20060305/859a85a7/attachment.pgp From barry at python.org Mon Mar 6 03:02:54 2006 From: barry at python.org (Barry Warsaw) Date: Sun, 05 Mar 2006 21:02:54 -0500 Subject: [Email-SIG] email package 2.5.7 Message-ID: <1141610574.10806.134.camel@resist.wooz.org> I'm happy to announce the release of the email 2.5.7 standalone package. This is a bug fix release and can be used with Python versions back to 2.1. More information and links for downloading are available in the cheeseshop: http://cheeseshop.python.org/pypi/email/2.5.7 Enjoy, -Barry -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 309 bytes Desc: This is a digitally signed message part Url : http://mail.python.org/pipermail/email-sig/attachments/20060305/c222e20a/attachment.pgp From tkikuchi at is.kochi-u.ac.jp Mon Mar 6 05:52:55 2006 From: tkikuchi at is.kochi-u.ac.jp (Tokio Kikuchi) Date: Mon, 06 Mar 2006 13:52:55 +0900 Subject: [Email-SIG] email package 4.0a2 In-Reply-To: <1141593038.10806.118.camel@resist.wooz.org> References: <1141593038.10806.118.camel@resist.wooz.org> Message-ID: <440BC027.1070101@is.kochi-u.ac.jp> Hi Barry, Barry Warsaw wrote: > I'm happy to announce the release of the email 4.0a2 standalone package. > There are also many bug fixes and updated documentation. More > information and links for downloading are available in the cheeseshop: > > http://cheeseshop.python.org/pypi/email/4.0a2 I'm working on this to integrate into mailman-2.2. Look like working fine. On the other hand, I'd like to ask this patch to be integrated while it is in alpha/beta stage. It will save many site admins in Japan. http://sourceforge.net/tracker/index.php?func=detail&aid=1443875&group_id=5470&atid=305470 -- Tokio Kikuchi, tkikuchi@ is.kochi-u.ac.jp http://weather.is.kochi-u.ac.jp/ From tkikuchi at is.kochi-u.ac.jp Mon Mar 6 07:14:28 2006 From: tkikuchi at is.kochi-u.ac.jp (Tokio Kikuchi) Date: Mon, 06 Mar 2006 15:14:28 +0900 Subject: [Email-SIG] email package 4.0a2 In-Reply-To: <440BC027.1070101@is.kochi-u.ac.jp> References: <1141593038.10806.118.camel@resist.wooz.org> <440BC027.1070101@is.kochi-u.ac.jp> Message-ID: <440BD344.6030003@is.kochi-u.ac.jp> Tokio Kikuchi wrote: > Hi Barry, > > Barry Warsaw wrote: > >>I'm happy to announce the release of the email 4.0a2 standalone package. > > >>There are also many bug fixes and updated documentation. More >>information and links for downloading are available in the cheeseshop: >> >>http://cheeseshop.python.org/pypi/email/4.0a2 > > > I'm working on this to integrate into mailman-2.2. Look like working fine. > Oops, the unicode charset makes another problem. --- email-4.0a2/email/message.py Mon Mar 6 04:58:33 2006 +++ email/message.py Mon Mar 6 14:59:04 2006 @@ -238,7 +238,7 @@ self.del_param('charset') self._charset = None return - if isinstance(charset, str): + if isinstance(charset, str) or isinstance(charset, unicode): charset = email.charset.Charset(charset) if not isinstance(charset, email.charset.Charset): raise TypeError(charset) I'd still prefer charset name be stored in simple string not unicode. -- Tokio Kikuchi, tkikuchi@ is.kochi-u.ac.jp http://weather.is.kochi-u.ac.jp/ From barry at python.org Sun Mar 5 22:10:38 2006 From: barry at python.org (Barry Warsaw) Date: Sun, 05 Mar 2006 16:10:38 -0500 Subject: [Email-SIG] email package 4.0a2 Message-ID: I'm happy to announce the release of the email 4.0a2 standalone package. This is the latest version of the email package and will be released with Python 2.5. The major changes between this version and email 3.0 (released with Python 2.4) is: * All modules have been renamed according to PEP 8 standards. For example, email.Message was renamed to email.message. * A new subpackage email.mime was added and all the email.MIME* modules renamed to live inside this subpackage. For example, email.MIMEText is now email.mime.text * A new class email.mime.application.MIMEApplication has been added to support application/* content types (thanks Keith Dart). * Methods that were deprecated in version 3 have been removed: Generator.__call__(), Message.get_type(), Message.get_main_type(), and Message.get_subtype() Note that the old, email version 3 package names are still supported for backward compatibility, so you won't have to change existing code. New code should use the new names as the old names will go away in Python 2.6. Also note that email.mime.application is /not/ provided as email.MIMEApplication. There are also many bug fixes and updated documentation. More information and links for downloading are available in the cheeseshop: http://cheeseshop.python.org/pypi/email/4.0a2 Barring any complications, this version will be merged into the Python 2.5 subversion tree in a week or so. Enjoy, -Barry -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 309 bytes Desc: This is a digitally signed message part Url : http://mail.python.org/pipermail/email-sig/attachments/20060305/b26f2fbd/attachment.pgp From tkikuchi at is.kochi-u.ac.jp Tue Mar 14 00:58:26 2006 From: tkikuchi at is.kochi-u.ac.jp (Tokio Kikuchi) Date: Tue, 14 Mar 2006 08:58:26 +0900 Subject: [Email-SIG] email package 4.0a2 In-Reply-To: <440BD344.6030003@is.kochi-u.ac.jp> References: <1141593038.10806.118.camel@resist.wooz.org> <440BC027.1070101@is.kochi-u.ac.jp> <440BD344.6030003@is.kochi-u.ac.jp> Message-ID: <44160722.6070705@is.kochi-u.ac.jp> I've uploaded this patch on the SF tracker. Tokio Kikuchi wrote: > Tokio Kikuchi wrote: > >> Hi Barry, >> >> Barry Warsaw wrote: >> >>> I'm happy to announce the release of the email 4.0a2 standalone package. >> >> >> >>> There are also many bug fixes and updated documentation. More >>> information and links for downloading are available in the cheeseshop: >>> >>> http://cheeseshop.python.org/pypi/email/4.0a2 >> >> >> >> I'm working on this to integrate into mailman-2.2. Look like working >> fine. >> > > Oops, the unicode charset makes another problem. > > --- email-4.0a2/email/message.py Mon Mar 6 04:58:33 2006 > +++ email/message.py Mon Mar 6 14:59:04 2006 > @@ -238,7 +238,7 @@ > self.del_param('charset') > self._charset = None > return > - if isinstance(charset, str): > + if isinstance(charset, str) or isinstance(charset, unicode): > charset = email.charset.Charset(charset) > if not isinstance(charset, email.charset.Charset): > raise TypeError(charset) > > I'd still prefer charset name be stored in simple string not unicode. > -- Tokio Kikuchi, tkikuchi@ is.kochi-u.ac.jp http://weather.is.kochi-u.ac.jp/ From barry at python.org Tue Mar 14 15:23:59 2006 From: barry at python.org (Barry Warsaw) Date: Tue, 14 Mar 2006 09:23:59 -0500 Subject: [Email-SIG] email package 4.0a2 In-Reply-To: <44160722.6070705@is.kochi-u.ac.jp> References: <1141593038.10806.118.camel@resist.wooz.org> <440BC027.1070101@is.kochi-u.ac.jp> <440BD344.6030003@is.kochi-u.ac.jp> <44160722.6070705@is.kochi-u.ac.jp> Message-ID: <1142346239.2114.23.camel@geddy.wooz.org> On Tue, 2006-03-14 at 08:58 +0900, Tokio Kikuchi wrote: > I've uploaded this patch on the SF tracker. Thanks, that definitely fixes your problem, but SF #1368247 is still broken. I haven't yet had time to figure out the right fix, but the cause is obvious. That unicode string never gets encoded before it's getting written by the generator into the StringIO. Shouldn't set_charset('utf-8') cause the unicode payload to get encoded? -Barry -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 309 bytes Desc: This is a digitally signed message part Url : http://mail.python.org/pipermail/email-sig/attachments/20060314/ab09d87f/attachment.pgp From barry at python.org Fri Mar 17 15:40:17 2006 From: barry at python.org (Barry Warsaw) Date: Fri, 17 Mar 2006 09:40:17 -0500 Subject: [Email-SIG] Merging email 4.0 to Python 2.5 svn trunk Message-ID: <1142606417.32074.21.camel@geddy.wooz.org> Last night I merged email 4.0 from the sandbox into my working copy of the Python svn trunk and ran "make testall". I hit one failure, in test_pyclbr.py. The test was importing email.Parser and expecting a real module, however in email 4.0 email.Parser is a placeholder object which exposes a backward compatible API for email.parser. The fix is simple, change 'P' to 'p' in the test, but I want to make sure that nobody cares that __import__('email.Parser') now returns an object that isn't a module, but acts enough like the original module for all intents and purposes. -Barry -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 309 bytes Desc: This is a digitally signed message part Url : http://mail.python.org/pipermail/email-sig/attachments/20060317/c4d6778a/attachment.pgp From barry at python.org Sat Mar 18 16:10:22 2006 From: barry at python.org (Barry Warsaw) Date: Sat, 18 Mar 2006 10:10:22 -0500 Subject: [Email-SIG] Merging email 4.0 to Python 2.5 svn trunk In-Reply-To: <1142606417.32074.21.camel@geddy.wooz.org> References: <1142606417.32074.21.camel@geddy.wooz.org> Message-ID: <1142694622.10599.0.camel@resist.wooz.org> On Fri, 2006-03-17 at 09:40 -0500, Barry Warsaw wrote: > The fix is simple, change 'P' to 'p' in the test, but I want to make > sure that nobody cares that __import__('email.Parser') now returns an > object that isn't a module, but acts enough like the original module for > all intents and purposes. I think the answer is "no", so I'm going to commit these changes. -Barry -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 309 bytes Desc: This is a digitally signed message part Url : http://mail.python.org/pipermail/email-sig/attachments/20060318/769c87f9/attachment.pgp