this is a first version intended only for seasoned sysadmins or programmers.
this script was written to replace a big excel sheet. it implements a (very) simple "skin" for the mysql database, where the data is stored. the main use-case is to be able to define a few filter criteria to produce a subset of all the addresses, to target a given newsletter specifically.
newsletter addresses objects have not only an email address but also some more data, like postual address fields, gender, etc. which are stored in the MAIN table ('main').
additonally there are other (lookup-) tables which may represent categories, etc. and corresponding link-tables. for example we have a record-company which links the persons=newsletter address objects in main table, to genres the persons like. this links are saved in nm_genres_main.
there are no routines for consistency, so the lookup tables should be considerd write-once-never-delete.
if you're planning to use/adapt this, good luck :D because this is no way near reusable, adaptable code, i have to admit.
seriously, if this might be for you, i'll try to help, just open an issue or something.