Custom module's activity doesn't show imported E-mails

Hi all,

I’ve created new modules based on Person and Account.
however when importing new emails they aren’t automatically added to the history of said objects ( email addresses are there )

I see them appear in the normal contact module to the correct person.

Anyone an idea how to fix/solve this ?

I’ve found also this posting :
but that didn’t help me either.

Found this forum post :
I modified it slightly so it said :

'emails' => 
    array (
      'module' => 'Emails',
		'subpanel_name' => 'ForHistory',
		'get_subpanel_data' => 'function:get_emails_by_assign_or_link',
		'function_parameters' => array('import_function_file' => 'include/utils.php', 'link' => 'fb_persoonrelaties_activities_emails'),//relationship is "emails"
		'get_distinct_data'=> true,

important is to check the ‘link’ part in the relationship table.

I’ve made this changes in :
I don’t know if this is the correct place to do this, but it’s working now. So if anyone knows the correct place to change/add this, let me know!