On 14:25, martedì 03 giugno 2008 Roopesh wrote:
> This error is because of the presence of \', \", \n etc.
>
> I had to do the following to make it work.
> address[i].replace("\'",'').replace('\"','').replace('\n','')
>
it's rather ugly :)
I suggest use re module as follow:
import re
address[i]
Hi,
I am using ConfigObj to write email addresses, as a list. I am using
email module functions to extract email addresses:
to_address = header.get_all('To', [])
address_list = getaddresses(to_address)
to = map(lambda address: '"'+address[0]+'"
<'+address[1]+'>' ,address_list)
conf_obj['to'] = t