witten
/
luminotes
Archived
1
0
Fork 0
This repository has been archived on 2023-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
luminotes/tools/dump_emails.py

30 lines
613 B
Python
Executable File

#!/usr/bin/python2.4
import os
import os.path
from controller.Database import Database
class Dumper( object ):
def __init__( self, database ):
self.database = database
self.dump_emails()
def dump_emails( self ):
email_addresses = self.database.select_many( unicode, u"select distinct email_address from luminotes_user_current where email_address is not null;" )
for address in email_addresses:
if address:
print address
def main( args ):
database = Database( cache = {} )
ranker = Dumper( database )
if __name__ == "__main__":
import sys
main( sys.argv[ 1: ] )