Re: [email/quoprimime.py] AttributeError: 'tuple' object has no attribute 'lstrip'

2009-01-06 Thread Gilles Ganault
On Mon, 05 Jan 2009 17:54:19 -0500, Terry Reedy tjre...@udel.edu wrote: for email in rows: To = email Thanks guys. Turns out email is a tuple, so here's how to extract the columns: for email in rows: email=email[0] -- http://mail.python.org/mailman/listinfo/python-list

Re: [email/quoprimime.py] AttributeError: 'tuple' object has no attribute 'lstrip'

2009-01-05 Thread Terry Reedy
Gilles Ganault wrote: Hello I successfully use the email package to send e-mail from Python scripts, but this script fails when I fetch addresses from an SQLite database where data is Unicode-encoded: == from email.MIMEText import MIMEText import smtplib,sys import apsw

[email/quoprimime.py] AttributeError: 'tuple' object has no attribute 'lstrip'

2009-01-04 Thread Gilles Ganault
Hello I successfully use the email package to send e-mail from Python scripts, but this script fails when I fetch addresses from an SQLite database where data is Unicode-encoded: == from email.MIMEText import MIMEText import smtplib,sys import apsw

Re: [email/quoprimime.py] AttributeError: 'tuple' object has no attribute 'lstrip'

2009-01-04 Thread Chris Rebert
On Sun, Jan 4, 2009 at 11:15 PM, Gilles Ganault nos...@nospam.com wrote: Hello I successfully use the email package to send e-mail from Python scripts, but this script fails when I fetch addresses from an SQLite database where data is Unicode-encoded: == from email.MIMEText