You can use fnLDAPQuery() to search for accounts where the email property is empty and return the ADsPath for that account. Then use the ADsPath to performa GetObject for the account in order to set the property.