Accounting.php.inc - modify listaccts ?

you think it is possible to modify (write own call) listaccts function from Accounting.php.inc so it would list accounts with a contact e-mail next to it somehow (for exaple you can use it to synchronize it with other db)