fix bug get_parent_fid, we had to take care also of mailboxes