Mercurial > p > roundup > code
diff roundup/mailgw.py @ 1477:ed725179953d
Added password reset facility for forgotten passwords.
Uses similar mechanism to PyPI.
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Thu, 27 Feb 2003 05:43:02 +0000 |
| parents | 285934a04a6c |
| children | f478c236b1f6 |
line wrap: on
line diff
--- a/roundup/mailgw.py Wed Feb 26 23:42:54 2003 +0000 +++ b/roundup/mailgw.py Thu Feb 27 05:43:02 2003 +0000 @@ -73,7 +73,7 @@ an exception, the original message is bounced back to the sender with the explanatory message given in the exception. -$Id: mailgw.py,v 1.110 2003-02-22 06:47:04 richard Exp $ +$Id: mailgw.py,v 1.111 2003-02-27 05:43:01 richard Exp $ ''' import string, re, os, mimetools, cStringIO, smtplib, socket, binascii, quopri @@ -999,14 +999,16 @@ # try a straight match of the address user = extractUserFromList(db.user, db.user.stringFind(address=address)) - if user is not None: return user + if user is not None: + return user # try the user alternate addresses if possible props = db.user.getprops() if props.has_key('alternate_addresses'): users = db.user.filter(None, {'alternate_addresses': address}) user = extractUserFromList(db.user, users) - if user is not None: return user + if user is not None: + return user # try to match the username to the address (for local # submissions where the address is empty)
