On affiche dans le whos les redirections de mail.

darcs-hash:20060228223918-68412-b2129e2af75493cb2ccaf939de30d33cd0f95623.gz
This commit is contained in:
glondu 2006-02-28 23:39:18 +01:00
parent 353537a4bc
commit eba8a928ee

View file

@ -310,6 +310,18 @@ def adher_details(adher) :
f += GL f += GL
f += RMH f += RMH
f += u'\n' f += u'\n'
try:
forward = file("/home/%s/.forward" % adher.compte()).readlines()
if len(forward) > 1:
forward = forward[0].strip() + " ...\n"
elif len(forward) == 1:
forward = forward[0].strip() + "\n"
if forward:
f += coul(u'Redirection : ', 'gras') + forward
except IOError, e:
# Pas de .forward, ou .forward privé... on laisse tomber
pass
# Etat administratif # Etat administratif
f += coul(u'Etat administratif : ','gras') f += coul(u'Etat administratif : ','gras')