Mailman n'encode pas correctement les headers du type "Nom <adresse>", donc
des qu'il y a un accent dans Nom (comme pour Augustion), il y a des problemes. darcs-hash:20060715062028-68412-389b8b5638f5465d23c5ae1f80de9af850d05854.gz
This commit is contained in:
parent
175f76119e
commit
eca73c501a
1 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@ import sys, signal, os
|
||||||
# Imports pour LDAP
|
# Imports pour LDAP
|
||||||
sys.path.append('/usr/scripts/gestion')
|
sys.path.append('/usr/scripts/gestion')
|
||||||
from gen_confs import gen_config, anim, cprint, OK, ERREUR
|
from gen_confs import gen_config, anim, cprint, OK, ERREUR
|
||||||
from ldap_crans import crans_ldap, preattr, ldap, CransLdap
|
from ldap_crans import crans_ldap, preattr, ldap, CransLdap, strip_accents
|
||||||
|
|
||||||
try:
|
try:
|
||||||
sys.path.append('/usr/lib/mailman')
|
sys.path.append('/usr/lib/mailman')
|
||||||
|
@ -126,7 +126,7 @@ class droits_ldap(CransLdap, droits):
|
||||||
# Ajout
|
# Ajout
|
||||||
for mail, nom in to_add :
|
for mail, nom in to_add :
|
||||||
pw = Utils.MakeRandomPassword()
|
pw = Utils.MakeRandomPassword()
|
||||||
userdesc = UserDesc(mail, nom.encode("UTF-8"), pw)
|
userdesc = UserDesc(mail, strip_accents(nom), pw)
|
||||||
mlist.ApprovedAddMember(userdesc)
|
mlist.ApprovedAddMember(userdesc)
|
||||||
if not only_add :
|
if not only_add :
|
||||||
# Supression des personnes inscritees en trop
|
# Supression des personnes inscritees en trop
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue