printf("URL for Part      : %s\n", spec); printf("Real Name         : %s\n", tmp->real_name); printf("Desired Type      : %s\n", tmp->desired_type); printf("Real Type         : %s\n", tmp->real_type); printf("Real Encoding     : %s\n", tmp->real_encoding); printf("Description       : %s\n", tmp->description); printf("Mac Type          : %s\n", tmp->x_mac_type); printf("Mac Creator       : %s\n", tmp->x_mac_creator);
PRINTF("URL for Part      : %s\n", spec); PRINTF("Real Name         : %s\n", tmp->real_name); PRINTF("Desired Type      : %s\n", tmp->desired_type); PRINTF("Real Type         : %s\n", tmp->real_type); PRINTF("Real Encoding     : %s\n", tmp->real_encoding); PRINTF("Description       : %s\n", tmp->description); PRINTF("Mac Type          : %s\n", tmp->x_mac_type); PRINTF("Mac Creator       : %s\n", tmp->x_mac_creator);
NotifyEmittersOfAttachmentList(MimeDisplayOptions     *opt,                               nsMsgAttachmentData    *data){  PRInt32     i = 0;  struct      nsMsgAttachmentData  *tmp = data;  if (!tmp)     return;  while (tmp->url)  {    char  *spec;    if (!tmp->real_name)    {      ++i;      ++tmp;            continue;    }    spec = nsnull;    if ( tmp->url )       tmp->url->GetSpec(&spec);    mimeEmitterStartAttachment(opt, tmp->real_name, tmp->real_type, spec, tmp->notDownloaded);    mimeEmitterAddAttachmentField(opt, HEADER_X_MOZILLA_PART_URL, spec);	  if (spec)		  nsMemory::Free(spec);    if ( (opt->format_out == nsMimeOutput::nsMimeMessageQuoting) ||          (opt->format_out == nsMimeOutput::nsMimeMessageBodyQuoting) ||          (opt->format_out == nsMimeOutput::nsMimeMessageSaveAs) ||          (opt->format_out == nsMimeOutput::nsMimeMessagePrintOutput) )    {      mimeEmitterAddAttachmentField(opt, HEADER_CONTENT_DESCRIPTION, tmp->description);      mimeEmitterAddAttachmentField(opt, HEADER_CONTENT_TYPE, tmp->real_type);      mimeEmitterAddAttachmentField(opt, HEADER_CONTENT_ENCODING,    tmp->real_encoding);      /* rhp - for now, just leave these here, but they are really               not necessary      printf("URL for Part      : %s\n", spec);      printf("Real Name         : %s\n", tmp->real_name);	    printf("Desired Type      : %s\n", tmp->desired_type);      printf("Real Type         : %s\n", tmp->real_type);	    printf("Real Encoding     : %s\n", tmp->real_encoding);       printf("Description       : %s\n", tmp->description);      printf("Mac Type          : %s\n", tmp->x_mac_type);      printf("Mac Creator       : %s\n", tmp->x_mac_creator);      */    }    mimeEmitterEndAttachment(opt);    ++i;    ++tmp;  }  mimeEmitterEndAllAttachments(opt);}