rem: recursive_attachment_search(us,dynamic_cast<BMIMEMultipartMailContainer *>(component));  BMailAttachment *attachment = dynamic_cast<BMailAttachment *>(component); if (attachment == NULL) continue;
add: recursive_attachment_search(us,dynamic_cast<BMIMEMultipartMailContainer *>(component),body);
context: static void recursive_attachment_search(TEnclosuresView *us,BMailContainer *mail) {	if (mail == NULL)		return;	for (int32 i = 0; i < mail->CountComponents(); i++)	{		BMailComponent *component = mail->GetComponent(i);		if (component->ComponentType() == B_MAIL_MULTIPART_CONTAINER)			recursive_attachment_search(us,dynamic_cast<BMIMEMultipartMailContainer *>(component));					BMailAttachment *attachment = dynamic_cast<BMailAttachment *>(component);		if (attachment == NULL)			continue;		us->fList->AddItem(new TListItem(component));	}}