forked from public/pyceo
Don't use uwdir emails for expired accounts since we ask for ~/.forward adress now.
This commit is contained in:
parent
fd65717c57
commit
67b56af44c
|
@ -12,7 +12,7 @@ class ExpiredAccounts:
|
||||||
expiredaccounts [--email]
|
expiredaccounts [--email]
|
||||||
|
|
||||||
Displays a list of expired accounts. If --email is specified, expired account
|
Displays a list of expired accounts. If --email is specified, expired account
|
||||||
owners will be emailed. The email will go to the email listed in uwdir.
|
owners will be emailed.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
def main(self, args):
|
def main(self, args):
|
||||||
|
@ -38,13 +38,3 @@ owners will be emailed. The email will go to the email listed in uwdir.
|
||||||
if send_email:
|
if send_email:
|
||||||
print " sending mail to %s" % uid
|
print " sending mail to %s" % uid
|
||||||
members.send_account_expired_email(name, uid)
|
members.send_account_expired_email(name, uid)
|
||||||
user = uwl.search_s(uwldap.base(), ldap.SCOPE_SUBTREE,
|
|
||||||
'(uid=%s)' % ldapi.escape(uid))
|
|
||||||
if len(user) > 0 and 'mailLocalAddress' in user[0][1]:
|
|
||||||
email = user[0][1]['mailLocalAddress'][0]
|
|
||||||
if send_email:
|
|
||||||
print " sending mail to %s" % email
|
|
||||||
members.send_account_expired_email(name, email)
|
|
||||||
else:
|
|
||||||
print " would also mail to %s" % email
|
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,10 @@
|
||||||
|
ceo (0.5.7+nmu1) stable; urgency=low
|
||||||
|
|
||||||
|
* Non-maintainer upload.
|
||||||
|
* Removed uwdir lookup for expired accounts emailing
|
||||||
|
|
||||||
|
-- Michael Ellis <m2ellis@caffeine.csclub.uwaterloo.ca> Tue, 18 May 2010 18:18:02 -0400
|
||||||
|
|
||||||
ceo (0.5.7) stable; urgency=low
|
ceo (0.5.7) stable; urgency=low
|
||||||
|
|
||||||
[ Michael Spang ]
|
[ Michael Spang ]
|
||||||
|
|
Loading…
Reference in New Issue