On affiche dans le whos les redirections de mail.
darcs-hash:20060228223918-68412-b2129e2af75493cb2ccaf939de30d33cd0f95623.gz
This commit is contained in:
parent
353537a4bc
commit
eba8a928ee
1 changed files with 21 additions and 9 deletions
|
@ -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')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue