[issue1685453] email package should work better with unicode

2011-12-05 Thread Sivan Greenberg

Sivan Greenberg siv...@gmail.com added the comment:

I am having hard time parsing all the text/html and text/plain parts of a 
message, concatenating them into a string. I am thinking of writing some custom 
code to do manual handling of this...

If this could be fixed that would be great. The issues are converting from and 
to ascii/unicode or whatever encoding/charset the part uses.

--
nosy: +sivang

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1685453
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1685453] email package should work better with unicode

2011-12-05 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

That particular problem will get fixed in the next version of the email package 
(hopefully in Python3.3), but that isn't ready yet.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1685453
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1685453] email package should work better with unicode

2010-12-27 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

Now that we are primarily focused on Python3 development, collecting unicode 
issues is not really all that useful (at least not to me, and I'm currently 
doing the email maintenance), so I'm closing this.  All the relevant issues are 
assigned to me anyway, so I'll be dealing with them by and by.

--
dependencies:  -Add decode_header_as_string method to email.utils, Add utf8 
alias for email charsets, Unicode email address helper, email package and 
Unicode strings handling, email.Header (via add_header) encodes non-ASCII 
content incorrectly, email.Header encode() unicode P2.6, email.header unicode 
fix, email.parser: impossible to read messages encoded in a different encoding, 
email/base64mime.py cannot work, email/charset.py convert() patch, smtplib is 
broken in Python3, unicode in email.MIMEText and email/Charset.py
resolution:  - out of date
stage: unit test needed - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1685453
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1685453] email package should work better with unicode

2010-07-17 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
nosy: +merwok

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1685453
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1685453] email package should work better with unicode

2010-06-24 Thread Shashwat Anand

Changes by Shashwat Anand anand.shash...@gmail.com:


--
nosy: +l0nwlf

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1685453
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1685453] email package should work better with unicode

2010-05-05 Thread Barry A. Warsaw

Changes by Barry A. Warsaw ba...@python.org:


--
assignee: barry - r.david.murray
nosy: +r.david.murray

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1685453
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1685453] email package should work better with unicode

2010-03-06 Thread Peter Kleiweg

Peter Kleiweg pklei...@xs4all.nl added the comment:

In Python 3.1.1, email.mime.text.MIMEText accepts an 8-bit charset, but not 
utf-8.

I think you should not have to specify a charset. All strings are unicode now, 
so I think the package should choose an appropriate charset based on the 
characters in the text, us-ascii, some iso-8859 charset, or utf-8, whatever 
fits.


Python 3.1.1 (r311:74480, Oct  2 2009, 11:50:52)
  
[GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2   
  
Type help, copyright, credits or license for more information.  
  
 from email.mime.text import MIMEText
   
 text = 'H\u00e9'
   
 msg = MIMEText(text, 'plain', 'iso-8859-1') 
   
 print(msg.as_string())  
   
Content-Type: text/plain; charset=iso-8859-1  
  
MIME-Version: 1.0   
  
Content-Transfer-Encoding: quoted-printable 
  

  
H=E9
  
 msg = MIMEText(text, 'plain', 'utf-8')  
   
Traceback (most recent call last):  
  
  File /my/opt/Python-3/lib/python3.1/email/message.py, line 269, in 
set_charset
cte(self)   
  
TypeError: 'str' object is not callable 
  

  
During handling of the above exception, another exception occurred: 
  

  
Traceback (most recent call last):  
  
  File stdin, line 1, in module   
  
  File /my/opt/Python-3/lib/python3.1/email/mime/text.py, line 30, in 
__init__  
self.set_payload(_text, _charset)   
  
  File /my/opt/Python-3/lib/python3.1/email/message.py, line 234, in 
set_payload
self.set_charset(charset)   
  
  File /my/opt/Python-3/lib/python3.1/email/message.py, line 271, in 
set_charset
self._payload = charset.body_encode(self._payload)  
  
  File /my/opt/Python-3/lib/python3.1/email/charset.py, line 380, in 
body_encode
return email.base64mime.body_encode(string) 
  
  File /my/opt/Python-3/lib/python3.1/email/base64mime.py, line 94, in 
body_encode  
enc = b2a_base64(s[i:i + max_unencoded]).decode(ascii)
  
TypeError: must be bytes or buffer, not str  

[issue1685453] email package should work better with unicode

2009-06-17 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--
dependencies: +email.header.decode_header data types are inconsistent and 
incorrectly documented
versions: +Python 3.2 -Python 3.0

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1685453
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1685453] email package should work better with unicode

2009-05-01 Thread Ben Gamari

Changes by Ben Gamari bgam...@gmail.com:


--
nosy: +bgamari

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1685453
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1685453] email package should work better with unicode

2009-03-31 Thread Hirokazu Yamamoto

Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:

Probably these are related too. #5259 #5304

--
dependencies: +email/base64mime.py cannot work, smtplib is broken in Python3
nosy: +ocean-city

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1685453
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1685453] email package should work better with unicode

2009-03-30 Thread Daniel Diniz

Daniel Diniz aja...@gmail.com added the comment:

Link to #1681333, #4487, #1443875, #1555842, #4661, #1078919, #963906,
#1379416 and #1368247.

--
components: +Unicode
dependencies: +Add utf8 alias for email charsets, Email.Header encodes 
non-ASCII content incorrectly, Unicode email address helper, email package and 
Unicode strings handling, email.Header encode() unicode P2.6, email.header 
unicode fix, email.parser: impossible to read messages encoded in a different 
encoding, email/charset.py convert() patch, unicode in email.MIMEText and 
email/Charset.py
nosy: +ajaksu2
stage:  - test needed
type:  - behavior
versions: +Python 2.7, Python 3.0, Python 3.1

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1685453
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com