roberthodgen/ndb_users — pull request #31 by roberthodgen (2014-12-18 19:23:24+00:00)
Title: Track email bounces to prevent multiple bounces

Now tracks bounces (via `/_ah/bounce` handler and `mail.py`)

Will:
- Increment the user's `bounceCount` by one when a bounce notification is received.
- Will reset the user's `lastBounce` to `datetime.now()` when a bounce notification is received.
- Will not send a user another email within `NDB_USERS_EMAIL_BOUNCE_RETRY_HOURS` of last bounce notification (see `users.User.email_bounce_limited()`)
- Will display notifications when bounce limit has been reached (timeout mentioned above).

Also includes:
- Misc. formatting
- Removal of unused imports.