Don't use uwdir emails for expired accounts since we ask for ~/.forward adress now.
authorMichael Ellis <me@michaelellis.ca>
Fri, 18 Jun 2010 22:54:34 +0000 (18:54 -0400)
committerMichael Ellis <me@michaelellis.ca>
Fri, 18 Jun 2010 22:54:34 +0000 (18:54 -0400)
ceo/console/expiredaccounts.py
debian/changelog

index 9237d44..898e437 100644 (file)
@@ -12,7 +12,7 @@ class ExpiredAccounts:
 expiredaccounts [--email]
 
 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):
@@ -38,13 +38,3 @@ owners will be emailed. The email will go to the email listed in uwdir.
         if send_email:
           print "  sending mail to %s" % 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
-
index 73c698a..4bf777a 100644 (file)
@@ -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
 
   [ Michael Spang ]