Index: trunk/wmfmailadmin/mbcleanup.py |
— | — | @@ -30,7 +30,7 @@ |
31 | 31 | if not domain.startswith('.') and os.path.isdir(domaindir): |
32 | 32 | try: |
33 | 33 | for localpart in os.listdir(domaindir): |
34 | | - if not localpart.startswith('.') and not localpart.find('@') and \ |
| 34 | + if not localpart.startswith('.') and localpart.find('@') < 0 and \ |
35 | 35 | os.path.isdir(os.path.join(domaindir, localpart)): |
36 | 36 | mailboxes.add((unicode(domain), unicode(localpart))) |
37 | 37 | except OSError, e: |