if (mime_typep((MimeObject *)aObj, (MimeObjectClass *)&mimeExternalBodyClass)) return 0;
CountTotalMimeAttachments(MimeContainer *aObj){  PRInt32     i;  PRInt32     rc = 0;  if ( (!aObj) || (!aObj->children) || (aObj->nchildren <= 0) )    return 0;  for (i=0; i<aObj->nchildren; i++)    rc += CountTotalMimeAttachments((MimeContainer *)aObj->children[i]) + 1;  return rc;}