[Mailman-Users] Automatic subscribtions
Frédéric Mantegazza
frederic.mantegazza at gbiloba.org
Fri Oct 12 07:39:05 CEST 2007
On vendredi 12 octobre 2007, Mark Sapiro wrote:
> Frédéric Mantegazza wrote:
> > Using sync_members on a file containing names and addresses, I get :
> >
> > Traceback (most recent call last):
> > File "/usr/sbin/sync_members", line 286, in ?
> > main()
> > File "/usr/sbin/sync_members", line 259, in main
> > s = email.Utils.formataddr((name, addr)).encode(enc, 'replace')
> > UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position
> > 3: ordinal not in range(128)
> >
> > Is this script able to handle non-ascii chars?
>
> There is a problem with the script, however at the point of the above
> error, the user had already been added and it is only in formatting the
> name and address for printing in the 'Added :' message that the error
> occurs.
>
> I think you can simply change line 289 of sync_members to
>
> s = email.Utils.formataddr((name, addr))
>
> to avoid this problem. Please try that and report.
Yes, it works. There are 2 lines with this call; I also had to change the
first one to make it work.
Thanks.
--
Frédéric
http://www.gbiloba.org
More information about the Mailman-Users
mailing list