// meta: The older-available element indicates whether messages older than those shown are available to be fetched. See the older_than parameter mentioned above.
foreach($data['references']as$item){
if($item['type']=='user'){
$user=$imp->prepUser($item);
var_dump($user);
}elseif($item['type']=='group'){
$group=$imp->prepGroup($item);
var_dump($group);
}elseif($item['type']=='tag'){
// could need these if we work from the parsed message text
// otherwise, the #blarf in orig text is fine.
}elseif($item['type']=='thread'){
// Shouldn't need thread info; we'll reconstruct conversations
// from the reply-to chains.
}elseif($item['type']=='message'){
// If we're processing everything, then we don't need the refs here.